stephenb
(Stephen Brown)
August 28, 2022, 1:24am
2
Perhaps take a read through this.
keyword
, numerics date
etc are not tokenized.. only text
fields are tokenized
keyword
s are stored in the inverted index and doc_values as well
Numerics are also stored in the inverted index but with some other meta data to support range searches etc.
There are lots of different mapping types you can use for numeric values, depending on the precision you need. Take a look at the documentation .
The numeric types are optimised for the type of searches you would typically run against a numeric type, like ranges. This means that there is some extra data stored along with the value.
If you're not going to be running range queries on the numeric fields and are just storing them for lookup, aggregation or ordering purposes, using a keyword mapping…