NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Term Queryedit
The 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.