jprante/elasticsearch-analysis-hunspell — Issue #1: Can't load plugin to ES
Author: xawiers
Created: 2012-01-19 10:30:14+00:00
State: open

I installed plugin via bin/plugin command and in ES log files it does not appear to be loaded:

[2012-01-19 12:09:36,919][INFO ][node ] [Lorna Dane] {0.18.7}[8601]: initializing ...
[2012-01-19 12:09:36,935][INFO ][plugins ] [Lorna Dane] loaded [river-rabbitmq], sites [bigdesk, head]
[2012-01-19 12:09:38,869][INFO ][node ] [Lorna Dane] {0.18.7}[8601]: initialized
[2012-01-19 12:09:38,870][INFO ][node ] [Lorna Dane] {0.18.7}[8601]: starting ...

created test analyzer:

index:
analysis:
analyzer:
test:
type: custom
tokenizer: standard
filter: [standard, lowercase, hunspell_lt]
filter:
hunspell_lt:
type: hunspell
locale: lt_LT
ignoreCase: true

when I try to create test index get error:

[2012-01-19 12:29:41,189][WARN ][cluster.metadata ] [Sunstroke] [test] failed to create
org.elasticsearch.indices.IndexCreationException: [test] failed to create index
at org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:290)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:221)
at org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:205)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: failed to find token filter type for [hunspell_lt]
at org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:235)
at org.elasticsearch.common.inject.AbstractModule.configure(AbstractModule.java:59)
at org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:210)
at org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:91)
at org.elasticsearch.common.inject.InjectorShell$Builder.build(InjectorShell.java:142)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:103)
at org.elasticsearch.common.inject.InjectorImpl.createChildInjector(InjectorImpl.java:138)
at org.elasticsearch.common.inject.ModulesBuilder.createChildInjector(ModulesBuilder.java:65)
at org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:288)
... 5 more
Caused by: org.elasticsearch.common.settings.NoClassSettingsException: Failed to load class setting [type] with value [hunspell]
at org.elasticsearch.common.settings.ImmutableSettings.getAsClass(ImmutableSettings.java:230)
at org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:228)
... 13 more
Caused by: java.lang.ClassNotFoundException: hunspell
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.elasticsearch.common.settings.ImmutableSettings.getAsClass(ImmutableSettings.java:214)
... 14 more