Hi Team,
I'm tryiing to create ngram analyzer for my project.
I've tried multiple json formats provided in elasticsearch documentation too.
Below is the common error I'm getting.
unknown setting filter
Please help on this.
12:19:59.603 [http-bio-8080-exec-10] ERROR t.m.services.GlobalExceptionMapper 22 - Global Exception
java.lang.IllegalArgumentException: unknown setting [index.settings.analysis.analyzer.AutoAnalyzer.filter] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:293) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:256) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:246) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.onlyCreateIndex(MetaDataCreateIndexService.java:221) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.createIndex(MetaDataCreateIndexService.java:201) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.admin.indices.create.TransportCreateIndexAction.masterOperation(TransportCreateIndexAction.java:81) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.admin.indices.create.TransportCreateIndexAction.masterOperation(TransportCreateIndexAction.java:39) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.master.TransportMasterNodeAction.masterOperation(TransportMasterNodeAction.java:87) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$2.doRun(TransportMasterNodeAction.java:166) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.common.util.concurrent.EsExecutors$1.execute(EsExecutors.java:110) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.doStart(TransportMasterNodeAction.java:163) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.start(TransportMasterNodeAction.java:126) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:104) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.master.TransportMasterNodeAction.doExecute(TransportMasterNodeAction.java:54) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:170) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:142) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.HandledTransportAction$TransportHandler.messageReceived(HandledTransportAction.java:64) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.action.support.HandledTransportAction$TransportHandler.messageReceived(HandledTransportAction.java:54) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.transport.TcpTransport$RequestHandler.doRun(TcpTransport.java:1533) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.common.util.concurrent.EsExecutors$1.execute(EsExecutors.java:110) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.transport.TcpTransport.handleRequest(TcpTransport.java:1490) ~[elasticsearch-5.6.0.jar:5.6.0]
at org.elasticsearch.transport.TcpTransport.messageReceived(TcpTransport.java:1374) ~[elasticsearch-5.6.0.jar:5.6.0]
settings.json
{
"settings": {
"number_of_replicas": 0,
"number_of_shards": 1,
"store.compress": { "stored": true, "tv": true },
"analysis": {
"tokenizer": {
"nGramTokenizer": {
"type": "nGram",
"min_gram": 2,
"max_gram": 8
}
},
"analyzer": {
"default_index": {
"type": "custom",
"tokenizer": "nGramTokenizer",
"filter": "lowercase"
},
"default_search": {
"type": "custom",
"tokenizer": "nGramTokenizer",
"filter": "lowercase"
},
"LowercaseAnalyzer": {
"type": "custom",
"tokenizer": "keyword",
"filter": "lowercase"
},
"AutoAnalyzer": {
"type": "custom",
"tokenizer": "nGramTokenizer",
"filter": "lowercase"
}
}
}
}
}