You are looking at documentation for an older release.
Not what you want? See the
current release documentation.
Term Filteredit
Filters 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"} } } }
Cachingedit
The 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 } } } }