Elasticsearch: Difference Between "Range Filter" and "Digital Range Filter"
Apart from the fact that it is specific for numeric values, how the execution differs from the internal one. The docs say:
... works by loading all the relevant field values ββinto memory and checking the relevant documents if they meet the range requirements. This requires more memory.
Has 2 options: (i) index (uses inverted index) (ii) fielddata (loads field data into memory)
Question:
- Will the parameter
fielddata
Range filter
make it look likeNumeric range filter
- Why
Numeric range filter
does the parameter have an index parameter? - The docs also say
for small ranges the index execution is faster
: What countssmall
here?
If anyone can explain this with an example it will really help.
source to share
The digital range filter is obsolete. According to the Java API , "This filter will be removed at some point in time in favor of a range filter with run mode field parameters."
I think "small" refers to the full range of values ββfor that field. The meaning of "small" is something that you will need to determine yourself using benchmarking, since performance will depend on how much memory Elasticsearch is allocated and the type of data stored in the field.
source to share