Queries

Note that all Query calls can also be passed additional keyword arguments not specified here, but no validation of inputs is done on them.

Query.simple_query_string

Query.simple_query_string(query, fields=[], default_operator=None, analyzer=None, flags=None, locale=None, lenient=None, lowercase_expanded_terms=None, analyze_wildcard=None, minimum_should_match=None)

Query.span_first

Query.span_first(Query)

Query.nested

Query.nested(path, Query)

Query.prefix

Query.prefix(field, value, boost=None)

Query.function_score

Query.function_score([functions], query=Query)

Query.span_near

Query.span_near([Query])

Query.script

Query.script(None)

Query.match

Query.match(field, query, operator=None, zero_terms_query=None, cutoff_frequency=None, boost=None, rewrite=None, prefix_length=None, fuzziness=None, minimum_should_match=None, analyzer=None, max_expansions=None)

Query.type

Query.type(value)

Query.span_not

Query.span_not(include=Query, exclude=Query)

Query.fuzzy

Query.fuzzy(field, value, boost=None, fuzziness=None, prefix_length=None, max_expansions=None)

Query.term

Query.term(field, value, boost=None)

Query.geo_distance

Query.geo_distance(field, lat=None, lon=None)

Query.span_multi

Query.span_multi(Query)

Query.common

Query.common(query, minimum_should_match=None, high_freq=None, low_freq=None, high_freq_operator=None, low_freq_operator=None, cutoff_frequency=None)

Query.indices

Query.indices([indices], query=Query, no_match_query=Query)

Query.geo_polygon

Query.geo_polygon(field, [points])

Query.exists

Query.exists(field)

Query.span_containing

Query.span_containing(Query, Query)

Query.geohash_cell

Query.geohash_cell(field, lat=None, lon=None)

Query.dis_max

Query.dis_max([Query])

Query.has_parent

Query.has_parent(parent_type, query=Query)

Query.geo_distance_range

Query.geo_distance_range(field, lat=None, lon=None)

Query.multi_match

Query.multi_match([fields], query, operator=None, zero_terms_query=None, cutoff_frequency=None, boost=None, rewrite=None, prefix_length=None, fuzziness=None, minimum_should_match=None, analyzer=None, max_expansions=None)

Query.more_like_this

Query.more_like_this([fields], like_text)

Query.bool

Query.bool(must=[Query], must_not=[Query], should=[Query])

Query.template

Query.template(None)

Query.limit

Query.limit(value)

Query.span_term

Query.span_term(field, value, boost=None)

Query.span_or

Query.span_or([Query])

Query.terms

Query.terms(field, [value])

Query.has_child

Query.has_child(type, query=Query)

Query.missing

Query.missing(field)

Query.span_within

Query.span_within(Query, Query)

Query.boosting

Query.boosting(positive=None, negative=None)

Query.geo_shape

Query.geo_shape(field, type=None, coordinates=[])

Query.regexp

Query.regexp(field, value, boost=None, flags=None)

Query.match_all

Query.match_all(boost=None)

Query.geo_bounding_box

Query.geo_bounding_box(field, top_left=None, bottom_right=None)

Query.ids

Query.ids([values], type=None)

Query.range

Query.range(field, gte=None, gt=None, lte=None, lt=None)

Query.wildcard

Query.wildcard(field, value, boost=None)

Query.query_string

Query.query_string(query, fields=[], default_field=None, default_operator=None, analyzer=None, allow_leading_wildcard=None, lowercase_expanded_terms=None, enable_position_increments=None, fuzzy_max_expansions=None, fuzziness=None, fuzzy_prefix_length=None, phrase_slop=None, boost=None, analyze_wildcard=None, auto_generate_phrase_queries=None, max_determinized_states=None, minimum_should_match=None, lenient=None, locale=None, time_zone=None)

Query.constant_score

Query.constant_score(query=Query)