Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Enabling fielddata on text fields to solve Elasticsearch error . #2

Open
bigjungle opened this issue Oct 23, 2018 · 0 comments
Open

Comments

@bigjungle
Copy link

com.github.vanroy.springdata.jest.exception.JestElasticsearchException: Cannot execute jest action , response code : 400 , error : {"root_cause":[{"type":"illegal_arg
ument_exception","reason":"Fielddata is disabled on text fields by default.

You can enable fielddata on an existing text field using the PUT mapping API as follows:

PUT achaangeddep/_mapping/achaangeddep
{
"properties": {
"id": {
"type": "text",
"fielddata": true
}
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant