{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [portstats] as the final mapping would have more than 1 type: [_doc, doc]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [portstats] as the final mapping would have more than 1 type: [_doc, doc]"},"status":400}%
Even if I remove the index porstats
curl -XDELETE http://127.0.0.1:9200/portstats
It's useless, when I POST again I will get the same error message.
I guess when I POST it will create type _doc automatically, but I don't know why the type isn't "doc"
I fixed my previous post... an index can only have 1 _type... it looks like you set it to doc first then tried to use _doc... once you set it / use it the first time you must continue to use the same value.
Apologies I should have been more clear ... in 7.x you can only have 1 _type per index.
The correct value is _doc but you can still use other values which is highly discourage as that ability has been completely removed in 8.x where the only value _type allowed is _doc. You will not be able to migrate indices with _type set to any other value that _doc to version 8.x that is why you should do it now.
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.