Hi,
I've got a legacy a project with old version of Elasticsearch and trying to get it working with ES 7.6.2. And encountered an error which I can't understand what is wrong. There is big index definition so I quote only parts which seem related with error.
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
Then it's done. There is request which displays a current structure of mapping for "categories" field and request which tries to add document into the index. I think it's enough.
I can not just copy and paste your script to run it in Kibana dev console. As we wrote in the About the Elasticsearch category guide, could you provide something like:
DELETE index
PUT index/_doc/1
{
"foo": "bar"
}
GET index/_search
{
"query": {
"match": {
"foo": "bar"
}
}
}
Please note that I removed product from POST my_index/product/_bulk as you should not use it anymore. If you want to use it, you must use _doc instead as this is the default type name. So POST my_index/_doc/_bulk.
Unfortunately, this solution won't fit in my case. In my system there is indexing 4 different types of documents. Though they have the same type of fields, each document has own set of fields and, what more important, they can use the same IDs. So I need a dividing documents by types.
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.