If you get that it is usually because you are using the create index API to
update the mapping. They look fairly similar and I've mixed them up a few
times so I know the error message well.
@nik9000, @danielmitterdorfer One small question, say I have set a default _ttl value and now i want to update the mapping so that there is no such default ttl value. I've tried with,
{
"_ttl": {
"enabled": true,
}
}
but doesn't seem to remove the default _ttl value.
PUT /my_index/_mapping/my_type
{
"_ttl": {
"enabled": false
}
}
throws an error:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "_ttl cannot be disabled once it was enabled."
}
],
"type": "illegal_argument_exception",
"reason": "_ttl cannot be disabled once it was enabled."
},
"status": 400
}
You have to create a new index if you need to disable it.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.