August 2019
Intermediate to advanced
560 pages
13h 41m
English
These types of queries will use the exact term (not analyze) specified in the query to match the inverted index. Usually, it uses fields of a number, date, and keyword data type, rather than full text. We will describe different sub-types of the term-level query in the following table:
| Sub-type | Description | Example |
| term | Use the exact term to match. | "term": {"field_1": "value_1"} |
| terms | Use any terms in the list to match. | "terms":{"field_1": ["value_1", "value_2"] |
| terms_set | Use any terms in the list to match, but the number of matches must reach the requisite number specified. This requires the required_matches parameter when you index the document and specify its value in the search query. | "terms_set":{"field_1": ... |
Read now
Unlock full access