Skip to content
This repository has been archived by the owner on Nov 14, 2021. It is now read-only.

Latest commit

 

History

History
34 lines (22 loc) · 612 Bytes

client.rst

File metadata and controls

34 lines (22 loc) · 612 Bytes

ElasticQuery Client

The main ElasticQuery class allows you to build Elasticsearch queries using a Pythonic API:

from elasticquery import ElasticQuery, Query, Aggregate

# Create a new query
q = ElasticQuery()

# Match something
q.query(Query.match('some_field', 'some_text'))

# Aggregate something
q.aggregate(Aggregate.terms('my_terms', 'some_field'))

API

elasticquery.elasticquery

Exceptions

elasticquery.exceptions