pyes.filters

class pyes.filters.ANDFilter(*args, **kwargs)
class pyes.filters.BoolFilter(must=None, must_not=None, should=None, **kwargs)

A filter that matches documents matching boolean combinations of other queries. Similar in concept to Boolean query, except that the clauses are other filters. Can be placed within queries that accept a filter.

add_must(queries)
add_must_not(queries)
add_should(queries)
is_empty()
serialize()
class pyes.filters.ExistsFilter(field=None, **kwargs)
class pyes.filters.Filter(**kwargs)
q
to_json()
class pyes.filters.FilterList(filters, **kwargs)
serialize()
class pyes.filters.GeoBoundingBoxFilter(field, location_tl, location_br, **kwargs)

http://github.com/elasticsearch/elasticsearch/issues/290

serialize()
class pyes.filters.GeoDistanceFilter(field, location, distance, distance_type='arc', **kwargs)

http://github.com/elasticsearch/elasticsearch/issues/279

serialize()
class pyes.filters.GeoPolygonFilter(field, points, **kwargs)

http://github.com/elasticsearch/elasticsearch/issues/294

serialize()
class pyes.filters.HasChildFilter(type, filter, _scope=None, **kwargs)

The has_child filter accepts a query and the child type to run against, and results in parent documents that have child docs matching the query

serialize()
class pyes.filters.IdsFilter(type, values, **kwargs)
serialize()
class pyes.filters.MatchAllFilter(**kwargs)

A filter that matches on all documents

serialize()
class pyes.filters.MissingFilter(field=None, **kwargs)
class pyes.filters.NotFilter(filter, **kwargs)
serialize()
pyes.filters.NumericRangeFilter

alias of RangeFilter

class pyes.filters.ORFilter(*args, **kwargs)
class pyes.filters.PrefixFilter(field=None, prefix=None, **kwargs)
add(field, prefix)
serialize()
class pyes.filters.QueryFilter(query, **kwargs)
serialize()
class pyes.filters.RangeFilter(qrange=None, **kwargs)
add(qrange)
serialize()
class pyes.filters.RegexTermFilter(field=None, value=None, **kwargs)
add(field, value)
serialize()
class pyes.filters.ScriptFilter(script, params=None, **kwargs)
add(field, value)
serialize()
class pyes.filters.TermFilter(field=None, value=None, _name=None, **kwargs)
add(field, value)
serialize()
class pyes.filters.TermsFilter(field=None, values=None, _name=None, **kwargs)
add(field, values)
serialize()

Previous topic

pyes.fakettypes

Next topic

pyes.highlight

This Page