Is there something special I need to do install
the UaxUrlEmailAnalyzerProvider? I'm getting an exception when I try to
set it as the default analyzer on an index.
Thanks,
Ben
Exception in thread "main" com.google.inject.ProvisionException: Guice
provision errors:
Error injecting constructor,
org.elasticsearch.ElasticSearchIllegalArgumentException: failed to find
analyzer type [uax_url_email] or tokenizer for [default]
at
controllers.batch.PopulateElasticSearch.(PopulateElasticSearch.java:21)
while locating controllers.batch.PopulateElasticSearch
1 error
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
at
controllers.batch.PopulateElasticSearch.main(PopulateElasticSearch.java:45)
Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: failed
to find analyzer type [uax_url_email] or tokenizer for [default]
at
org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:372)
at
org.elasticsearch.common.inject.AbstractModule.configure(AbstractModule.java:60)
at
org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:201)
at
org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:82)
at
org.elasticsearch.common.inject.InjectorShell$Builder.build(InjectorShell.java:130)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:99)
at
org.elasticsearch.common.inject.InjectorImpl.createChildInjector(InjectorImpl.java:129)
at
org.elasticsearch.common.inject.ModulesBuilder.createChildInjector(ModulesBuilder.java:66)
at
org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:380)
at
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:263)
at
org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:229)
at
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:95)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.elasticsearch.common.settings.NoClassSettingsException:
Failed to load class setting [type] with value [uax_url_email]
at
org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:347)
at
org.elasticsearch.common.settings.ImmutableSettings.getAsClass(ImmutableSettings.java:335)
at
org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:356)
... 14 more
Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.index.analysis.uaxurlemail.UaxUrlEmailAnalyzerProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at
org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:345)
... 16 more
I think I got it figured out. I was trying to set
index.analysis.analyzer.default.type and I think I should have been setting
the index.analysis.tokenizer.default.type. The docs could definitely expand
a bit more on some of these settings.
Is there something special I need to do install
the UaxUrlEmailAnalyzerProvider? I'm getting an exception when I try to
set it as the default analyzer on an index.
Thanks,
Ben
Exception in thread "main" com.google.inject.ProvisionException: Guice
provision errors:
Error injecting constructor,
org.elasticsearch.ElasticSearchIllegalArgumentException: failed to find
analyzer type [uax_url_email] or tokenizer for [default]
at
controllers.batch.PopulateElasticSearch.(PopulateElasticSearch.java:21)
while locating controllers.batch.PopulateElasticSearch
1 error
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
at
controllers.batch.PopulateElasticSearch.main(PopulateElasticSearch.java:45)
Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: failed
to find analyzer type [uax_url_email] or tokenizer for [default]
at
org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:372)
at
org.elasticsearch.common.inject.AbstractModule.configure(AbstractModule.java:60)
at
org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:201)
at
org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:82)
at
org.elasticsearch.common.inject.InjectorShell$Builder.build(InjectorShell.java:130)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:99)
at
org.elasticsearch.common.inject.InjectorImpl.createChildInjector(InjectorImpl.java:129)
at
org.elasticsearch.common.inject.ModulesBuilder.createChildInjector(ModulesBuilder.java:66)
at
org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:380)
at
org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:263)
at
org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:229)
at
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:95)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.elasticsearch.common.settings.NoClassSettingsException:
Failed to load class setting [type] with value [uax_url_email]
at
org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:347)
at
org.elasticsearch.common.settings.ImmutableSettings.getAsClass(ImmutableSettings.java:335)
at
org.elasticsearch.index.analysis.AnalysisModule.configure(AnalysisModule.java:356)
... 14 more
Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.index.analysis.uaxurlemail.UaxUrlEmailAnalyzerProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at
org.elasticsearch.common.settings.ImmutableSettings.loadClass(ImmutableSettings.java:345)
... 16 more
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.