ElasticSearch match Query

From GM-RKB
Jump to navigation Jump to search

An ElasticSearch match Query is an ElasticSearch query that is a match query.



References

2012

  • http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-term-query.html
    • A family of match queries that accept text/numerics/dates, analyzes it, and constructs a query out of it.

      … The default match query is of type boolean. It means that the text provided is analyzed and the analysis process constructs a boolean query from the provided text. The operator flag can be set to or or and to control the boolean clauses (defaults to or). The minimum number of should clauses to match can be set using the minimum_should_match parameter.
      The analyzer can be set to control which analyzer will perform the analysis process on the text. It default to the field explicit mapping definition, or the default search analyzer.

      … If the analyzer used removes all tokens in a query like a stop filter does, the default behavior is to match no documents at all. In order to change that the zero_terms_query option can be used, which accepts none (default) and all which corresponds to a match_all query.