Hello, maybe the subject is a little bit unclear... Sorry
Elasticsearch 5.6.10
First time I tried to sort some field in the Kibana dashboard, I got an error message like "Fielddata is disabled on text fields by default". After googling that error message, I managed to solve it by running a command like this
curl -X PUT "my.host.name:9200/myindex-*/_mapping/logs" -H 'Content-Type: application/json' -d'
{
"properties": {
"field1": {
"type": "text",
"fielddata": true
},
"field2": {
"type": "text",
"fielddata": true
}
}
}
'
It worked fine at that time.
However, if I try to sort again, now I am getting another error message saying that some of the shards failed.
Running the command again solves the issue.
Is it possible the command only works with the indices that exist, but it does not affect new ones created after it, even though they have the same pattern?
I feel I am missing something basic here, but as I don't know what it is, I don't know how to investigate it.
If someone can just tell me the keywords, I can take from there and start investigating. A direct link to the documentation would be even better
Thanks a lot in advance.