QueryContainer
editQueryContainer
editThe container for all of the allowed Elasticsearch queries. Specify only one property each time.
Properties
edit-
bool
(BoolQuery
) - A query for documents that match boolean combinations of other queries.
-
exists
(ExistsQuery
) -
Matches documents that have at least one non-
null
value in the original field. -
match
(map[string,
MatchQuery
]
) -
match_all
(MatchAllQuery
) - A query that matches all documents.
-
match_none
(MatchNoneQuery
) - A query that doesn't match any documents.
-
nested
(NestedQuery
) - A query that matches nested objects.
-
prefix
(map[string,
PrefixQuery
]
) -
query_string
(QueryStringQuery
) - A query that uses the strict query string syntax for parsing. Will return an error for invalid syntax.
-
range
(map[string,
RangeQuery
]
) -
simple_query_string
(SimpleQueryStringQuery
) - A query that uses simple query string syntax. Will ignore invalid syntax.
-
term
(map[string,
TermQuery
]
)
Example
edit{ "bool" : { "filter" : [ null ], "minimum_should_match" : 0, "must" : [ null ], "must_not" : [ null ], "should" : [ null ] }, "exists" : { "field" : "string" }, "match" : { "some_property" : { "analyzer" : "string", "minimum_should_match" : 0, "operator" : "string", "query" : "string" } }, "match_all" : {}, "match_none" : {}, "nested" : { "path" : "string", "query" : null, "score_mode" : "string" }, "prefix" : { "some_property" : { "boost" : 0.1, "value" : "string" } }, "query_string" : { "allow_leading_wildcard" : true, "analyzer" : "string", "default_field" : "string", "default_operator" : "string", "query" : "string" }, "range" : { "some_property" : { "boost" : 0.1, "format" : "string", "gt" : {}, "gte" : {}, "lt" : {}, "lte" : {}, "time_zone" : "string" } }, "simple_query_string" : { "analyze_wildcard" : true, "analyzer" : "string", "auto_generate_synonyms_phrase_query" : true, "default_operator" : "string", "fields" : [ "string" ], "flags" : "string", "fuzzy_max_expansions" : 0, "fuzzy_prefix_length" : 0, "fuzzy_transpositions" : true, "lenient" : true, "minimum_should_match" : "string", "query" : "string", "quote_field_suffix" : "string" }, "term" : { "some_property" : { "value" : "string" } } }