WARNING: Version 0.90 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Term Filter
editTerm Filter
editFilters documents that have fields that contain a term (not analyzed). Similar to term query, except that it acts as a filter. Can be placed within queries that accept a filter, for example:
{ "constant_score" : { "filter" : { "term" : { "user" : "kimchy"} } } }
Caching
editThe result of the filter is automatically cached by default. The
_cache
can be set to false
to turn it off. Here is an example:
{ "constant_score" : { "filter" : { "term" : { "user" : "kimchy", "_cache" : false } } } }