Author: Scott Torborg
pyramid_es
is a pattern and set of utilities for integrating the
elasticsearch search engine with a Pyramid web app. It is intended to make it easy to
index a set of persisted objects and search those documents inside Pyramid
views. Transactions are supported (designed to work with pyramid_tm
) and a full test suite is included.
Docs are available at Read The Docs <http://pyramid-es.rtfd.org>.
Install with pip:
$ pip install pyramid_es
client = get_client(request)
result = client.query(Movie).\
filter_term('year', 1987).\
order_by('rating').\
execute()