ElasticSearch Error - Fielddata is disabled on text fields by default
Answers
Rashmi
1068
Points
19
Posts
|
Use following query dsl command:
Posted On:
30-Mar-2019 00:59
|
Brian
2376
Points
13
Posts
|
According to ElasticSearch reference https://www.elastic.co/guide/en/elasticsearch/reference/5.0/fielddata.html "Fielddata can consume a lot of heap space, especially when loading high cardinality text fields. Once fielddata has been loaded into the heap, it remains there for the lifetime of the segment. Also, loading fielddata is an expensive process which can cause users to experience latency hits. This is why fielddata is disabled by default." If you try to sort, aggregate, or access values from a script on a text field then you will see this exception:
You need to set fielddata=true on field in order to load fielddata in memory by uninverting the inverted index. Doing this can use significant memory.
Posted On:
12-Apr-2019 09:23
|
Blog
Active User (0)
No Active User!