When started Elasticsearch node, got below log, which says my_analyzer is loaded. INFO: modules [], plugins [my_analyzer, delete-by-query], sites []
But when creating index with analyzer set to my_analyzer, got below error
Caused by: MapperParsingException[Root mapping definition has unsupported parameters: [analyzer : my_analyzer]]
at org.elasticsearch.index.mapper.DocumentMapperParser.checkNoRemainingFields(DocumentMapperParser.java:171)
at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:159)
at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:99)
at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:508)
at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:288)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:329)
... 8 more
Does this mean the analyzer plugin is not identified properly?
Even after registering the analyzer using AnalysisModule.addAnalyzer and AnalysisModule.addProcessor, still getting the same error. I am not able to figure out the root cause yet.
Debugging further, i have seen entries in analyzers in AnalysizModule object
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.