I have a plugin with a custom query and QueryBuilder. I've written the test extending it from org.elasticsearch.test.AbstractQueryTestCase. When I'm running it I got the following error:
Caused by: MapperParsingException[No handler for type [geo_shape] declared on field [mapped_geo_shape]]
at org.elasticsearch.index.mapper.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:274)
at org.elasticsearch.index.mapper.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:199)
at org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:131)
at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:112)
at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:92)
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:349)
... 39 more
Elasticsearch 6.3.2 (tried also wtih 6.4.3)
Lucene 7.3.1 (tried also with 7.4.0)
When I updated Elasticsearch version to 6.4.3 - this error gone for the first run. I ran the test again and got this error again. My plugin doesn't operates with geo_shape type or other types. I've returned to 6.3.2 and first run worked, but the following calls are failed.
I've tried to add dependencies to my pom.xml com.vididsolutions.jts and spatial4j as advised in the that topic but it didn't helped.
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.