Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dtelaroli
Created September 4, 2020 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtelaroli/a216f0ada3a6480f1552f27690f8ce9a to your computer and use it in GitHub Desktop.
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.
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