ElasticQuery Client

class elasticquery.elasticquery.ElasticQuery(es=None, index=None, doc_type=None)

A class for building ES queries

aggregate(*aggregates)
dict()
fields(fields)
filter(filter_)
from_(from_)
get()

Execute the current query (requires _es, _index & _doc_type).

json(**kwargs)
query(query)
set(key, value)

Set an arbitrary attribute on this query.

size(size)
sort(field, order=None)
suggest(*suggesters)
timeout(timeout)

Exceptions

exception elasticquery.exception.DslException
exception elasticquery.exception.ElasticQueryException
exception elasticquery.exception.InvalidArg
exception elasticquery.exception.MissingArg
exception elasticquery.exception.NoAggregate
exception elasticquery.exception.NoDocType
exception elasticquery.exception.NoESClient
exception elasticquery.exception.NoFilter
exception elasticquery.exception.NoIndexName
exception elasticquery.exception.NoQuery
exception elasticquery.exception.NoSuggester