QueryContaineredit

Container for all of the allowed Elasticsearch queries. Only one can be specified.

Propertiesedit

bool (BoolQuery)
A query that matches documents matching 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)
The most simple query, which matches all documents.
nested (NestedQuery)
A query that is applicable to nested objects.
prefix (map[string,PrefixQuery])
query_string (QueryStringQuery)
A query that uses the SimpleQueryParser to parse its context.
range (map[string,RangeQuery])
term (map[string,TermQuery])

Exampleedit

{
   "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" : {},
   "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"
      }
   },
   "term" : {
      "some_property" : {
         "value" : {}
      }
   }
}