Created
September 4, 2020 00:31
-
-
Save dtelaroli/a216f0ada3a6480f1552f27690f8ce9a to your computer and use it in GitHub Desktop.
ElasticSearch error Fielddata is disabled on text fields by default. Set fielddata=true on [field] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT <index>/_mapping/doc | |
{ | |
"properties": { | |
"field": { | |
"type": "text", | |
"fielddata": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment