You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A more fine grained control over filters and if they should be cached or not. Caching a filter basically means building a fast in memory lookup of doc_id -> bit (0 does not match, 1 match). For some filters, it make sense to default to cache them, and some not. All allow to change the default behavior by setting _cache to either true or false.
The following filters are cached by default: prefix, term, terms, range.
The following filters are not cached by default: and, bool, fquery, geo_bounding_box, geo_distance, geo_polygon, not, or, script.
The ones that are not cached are already either fast since they work against cached field data, or the chances of executing the same filter are low enough that it does not make sense to default it.
There are cases though where it does make sense to cache it. For example, executing a common filter for distance from a certain point should enable caching.
The text was updated successfully, but these errors were encountered:
A more fine grained control over filters and if they should be cached or not. Caching a filter basically means building a fast in memory lookup of doc_id -> bit (0 does not match, 1 match). For some filters, it make sense to default to cache them, and some not. All allow to change the default behavior by setting
_cache
to eithertrue
orfalse
.The following filters are cached by default:
prefix
,term
,terms
,range
.The following filters are not cached by default:
and
,bool
,fquery
,geo_bounding_box
,geo_distance
,geo_polygon
,not
,or
,script
.The ones that are not cached are already either fast since they work against cached field data, or the chances of executing the same filter are low enough that it does not make sense to default it.
There are cases though where it does make sense to cache it. For example, executing a common filter for distance from a certain point should enable caching.
The text was updated successfully, but these errors were encountered: