I had an index that had single type. Now, I am planning to enable "index.mapping.single_type" and I triggered the following API to make it happen, got the following error.
BTW, I closed the index before applying the above API.
Is there a problem with the syntax or is it not allowed .
PUT testindex1/_settings
{
"settings": {
"index.mapping.single_type": true
}
}
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "final testindex1 setting [index.mapping.single_type], not updateable"
}
],
"type": "illegal_argument_exception",
"reason": "final testindex1 setting [index.mapping.single_type], not updateable"
},
"status": 400
}
hmm.i tried with new index as you see above, it is even failing as part of index creation. It doesn't seem it works in any way irrespective of whether index is the new or old [ in 5.6 ]
my intention is to create an index with only one type and I wanted to enforce this in 5.6
I happened to see in the documentation - but it dint help
Elasticsearch 5.6.0
Setting index.mapping.single_type: true on an index will enable the single-type-per-index behaviour which will be enforced in 6.0.
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.