My problem is that when indexing documents, some data don't have location and Elasticsearch would return error {"type":"mapper_parsing_exception","reason":"failed to parse [location.lonlat]","caused_by":{"reason":"shape type not included","type":"parse_exception"}} and reject the whole document.
Is there a way to make Elasticsearch ignore the missing properties in location and index the document anyway? I saw there is a new parameter under geo-shape type called ignore-malformed in Elasticsearch 6.x, will that help my situation?
Thanks for your response. What are [tags]? Are you suggesting I should check for the error type when indexing data and handle the error accordingly? If the error is thrown, doesn't it mean that the Elasticsearch already rejected the document?
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.