Reputation: 2382
In the Elasticsearch documentation, it mentions that I can set an exeuction
property on a range filter: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-filter.html#_execution
If I don't specify the value, will it use index
or fielddata
by default or neither?
Likewise, if it uses index
by default, is it also caching by default?
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-filter.html#_caching_16
Upvotes: 0
Views: 118
Reputation: 217354
If you don't specify the execution
mode for a range
filter, it will use index
by default (the value is hardcoded in the source code).
From there on, it logically follows that caching will be enabled by default as can be seen a bit further in the code.
When the documentation doesn't tell, the source code will ;)
Upvotes: 2