IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Term Query
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Term Query
editThe term
query finds documents that contain the exact term specified
in the inverted index. For instance:
A boost
parameter can be specified to give this term
query a higher
relevance score than another query, for instance:
GET _search { "query": { "bool": { "should": [ { "term": { "status": { "value": "urgent", "boost": 2.0 } } }, { "term": { "status": "normal" } } ] } } }
The |
|
The |
A term
query can also match against range data types.
Was this helpful?
Thank you for your feedback.