December 2017
Intermediate to advanced
434 pages
10h 29m
English
A match query is the default query for most full-text search requirements. It is one of the high-level queries which is aware of the analyzer used for the underlying field. Let us understand what this means under the hood.
For example, when you use the match query on a keyword field, it knows that the underlying field is a keyword field and hence the search terms are not analyzed at the time of querying:
GET /amazon_products/products/_search{ "query": { "match": { "manufacturer.raw": "victory multimedia" } }}
The match query in this case behaves just like a term query, which we understood in the previous section. It does not analyze the search term's victory multimedia as the separate terms victory and multimedia. This is because ...
Read now
Unlock full access