/pyramid_es

Elasticsearch integration for Pyramid

Primary LanguagePythonOtherNOASSERTION

pyramid_es - Elasticsearch Integration for Pyramid

https://secure.travis-ci.org/storborg/pyramid_es.png https://coveralls.io/repos/storborg/pyramid_es/badge.png?branch=master

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>.

Installation

Install with pip:

$ pip install pyramid_es

Example Usage

client = get_client(request)
result = client.query(Movie).\
    filter_term('year', 1987).\
    order_by('rating').\
    execute()