I got this error message . {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [roadType] declared on fie ld [_parent]"}],"type":"mapper_parsing_exception","reason":"No handler for type [roadType] declared on field [_pare nt]"},"status":400}
Does anyone have any idea. Thank you
The mapping looks fine and works properly when used directly in Elasticsearch. I feel the problem is in the client which you are using to communicate with Elasticsearch. You can try creating the child type first and then the parent; see if this helps.
Also, just for your information - In the newer version of Elasticsearch type: string has been replaced with type: text or keyword.
Thank you. I have figured out why it is not work.
When create the index , the mapping of parent and child must create in same time. So this is a problem. The client which i am using to communicate with Elasticsearch will sent request to ES server one by one for each mapping type.
Do you know how to create parent/child when the parent type is already exist ?
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.