Using icu_collation plugin in Unit Tests

Hi,
I am new to ES. I am using NodeBuilder in my unit test to run a local
instance of ES. I would like to use the icu_collation plugin. How can i
install and run the plugin form within this local instance. Is there API
that i should use? if not, what are the different ways i can do this?

Thank you very much,
Kumar Subramanian.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You most likely just need to add it as a dependency. Which is easy if you are using maven.

David

Le 15 janv. 2015 à 21:03, Kumar S krskumar108@gmail.com a écrit :

Hi,
I am new to ES. I am using NodeBuilder in my unit test to run a local instance of ES. I would like to use the icu_collation plugin. How can i install and run the plugin form within this local instance. Is there API that i should use? if not, what are the different ways i can do this?

Thank you very much,
Kumar Subramanian.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8E14B6ED-B736-4CA8-9200-65E60006CDDC%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Thanks David!

Sorry for being a new one in the ES world. But where would i download the
JAR file from and what calss should i be using for the icu_collation?

Thank you very much,
Kumar Subramanian,

On Thursday, January 15, 2015 at 12:52:12 PM UTC-8, David Pilato wrote:

You most likely just need to add it as a dependency. Which is easy if you
are using maven.

David

Le 15 janv. 2015 à 21:03, Kumar S <krsku...@gmail.com <javascript:>> a
écrit :

Hi,
I am new to ES. I am using NodeBuilder in my unit test to run a local
instance of ES. I would like to use the icu_collation plugin. How can i
install and run the plugin form within this local instance. Is there API
that i should use? if not, what are the different ways i can do this?

Thank you very much,
Kumar Subramanian.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You don't need to manually download the jar file if you use Maven. Add the
jar as dependency to your pom.xml

org.elasticsearch elasticsearch-analysis-icu 2.4.1

Jörg

On Thu, Jan 15, 2015 at 10:47 PM, Kumar S krskumar108@gmail.com wrote:

Thanks David!

Sorry for being a new one in the ES world. But where would i download the
JAR file from and what calss should i be using for the icu_collation?

Thank you very much,
Kumar Subramanian,

On Thursday, January 15, 2015 at 12:52:12 PM UTC-8, David Pilato wrote:

You most likely just need to add it as a dependency. Which is easy if you
are using maven.

David

Le 15 janv. 2015 à 21:03, Kumar S krsku...@gmail.com a écrit :

Hi,
I am new to ES. I am using NodeBuilder in my unit test to run a local
instance of ES. I would like to use the icu_collation plugin. How can i
install and run the plugin form within this local instance. Is there API
that i should use? if not, what are the different ways i can do this?

Thank you very much,
Kumar Subramanian.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGpyUHXde-P4e3YqrcXi2AduDevh-7LsgB7dA3TzStsvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi Jorg,
Thanks!
I added ES-analysis-icu 2.4.1 as a dependency. I get NoClassDefFound
org.elasticsearch.common.inject.CreationException: Guice creation errors:

  1. Error injecting constructor, java.lang.NoClassDefFoundError:
    org/apache/lucene/analysis/icu/segmentation/ICUTokenizer
    at org.elasticsearch.indices.analysis.IcuIndicesAnalysis.(Unknown
    Source)
    while locating org.elasticsearch.indices.analysis.IcuIndicesAnalysis

1 error
at
org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:344)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:178)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:110)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:59)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:197)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.amazon.clouddrive.elasticsearch.TestBase.setupES(TestBase.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/icu/segmentation/ICUTokenizer
at
org.elasticsearch.indices.analysis.IcuIndicesAnalysis.(IcuIndicesAnalysis.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at
org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:54)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
at
org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:98)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:837)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:57)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
at
org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:193)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:830)
at
org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:193)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:175)
... 24 more
Caused by: java.lang.ClassNotFoundException:
org.apache.lucene.analysis.icu.segmentation.ICUTokenizer
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:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 42 more

java.lang.NullPointerException
at com.TestBase.teardownES(TestBase.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:36)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

On Friday, January 16, 2015 at 12:00:45 AM UTC-8, Jörg Prante wrote:

You don't need to manually download the jar file if you use Maven. Add the
jar as dependency to your pom.xml

org.elasticsearch elasticsearch-analysis-icu 2.4.1

Jörg

On Thu, Jan 15, 2015 at 10:47 PM, Kumar S <krsku...@gmail.com
<javascript:>> wrote:

Thanks David!

Sorry for being a new one in the ES world. But where would i download the
JAR file from and what calss should i be using for the icu_collation?

Thank you very much,
Kumar Subramanian,

On Thursday, January 15, 2015 at 12:52:12 PM UTC-8, David Pilato wrote:

You most likely just need to add it as a dependency. Which is easy if
you are using maven.

David

Le 15 janv. 2015 à 21:03, Kumar S krsku...@gmail.com a écrit :

Hi,
I am new to ES. I am using NodeBuilder in my unit test to run a local
instance of ES. I would like to use the icu_collation plugin. How can i
install and run the plugin form within this local instance. Is there API
that i should use? if not, what are the different ways i can do this?

Thank you very much,
Kumar Subramanian.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c0c6bb22-c79d-49f2-a1db-7ae986627241%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Jorg,
Thanks!

I get NoClassDefFound:
org/apache/lucene/analysis/icu/segmentation/icutokenizer

Thanks,
Kumar

On Friday, January 16, 2015 at 12:00:45 AM UTC-8, Jörg Prante wrote:

You don't need to manually download the jar file if you use Maven. Add the
jar as dependency to your pom.xml

org.elasticsearch elasticsearch-analysis-icu 2.4.1

Jörg

On Thu, Jan 15, 2015 at 10:47 PM, Kumar S <krsku...@gmail.com
<javascript:>> wrote:

Thanks David!

Sorry for being a new one in the ES world. But where would i download the
JAR file from and what calss should i be using for the icu_collation?

Thank you very much,
Kumar Subramanian,

On Thursday, January 15, 2015 at 12:52:12 PM UTC-8, David Pilato wrote:

You most likely just need to add it as a dependency. Which is easy if
you are using maven.

David

Le 15 janv. 2015 à 21:03, Kumar S krsku...@gmail.com a écrit :

Hi,
I am new to ES. I am using NodeBuilder in my unit test to run a local
instance of ES. I would like to use the icu_collation plugin. How can i
install and run the plugin form within this local instance. Is there API
that i should use? if not, what are the different ways i can do this?

Thank you very much,
Kumar Subramanian.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c09c21a7-0a08-4038-8d4a-693f52dc311d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I am using ES 1.4.2 & ES-analysis-icu 2.4.1

On Friday, January 16, 2015 at 12:33:00 PM UTC-8, Kumar S wrote:

Hi Jorg,
Thanks!

I get NoClassDefFound:
org/apache/lucene/analysis/icu/segmentation/icutokenizer

Thanks,
Kumar

On Friday, January 16, 2015 at 12:00:45 AM UTC-8, Jörg Prante wrote:

You don't need to manually download the jar file if you use Maven. Add
the jar as dependency to your pom.xml

org.elasticsearch elasticsearch-analysis-icu 2.4.1

Jörg

On Thu, Jan 15, 2015 at 10:47 PM, Kumar S krsku...@gmail.com wrote:

Thanks David!

Sorry for being a new one in the ES world. But where would i download
the JAR file from and what calss should i be using for the icu_collation?

Thank you very much,
Kumar Subramanian,

On Thursday, January 15, 2015 at 12:52:12 PM UTC-8, David Pilato wrote:

You most likely just need to add it as a dependency. Which is easy if
you are using maven.

David

Le 15 janv. 2015 à 21:03, Kumar S krsku...@gmail.com a écrit :

Hi,
I am new to ES. I am using NodeBuilder in my unit test to run a local
instance of ES. I would like to use the icu_collation plugin. How can i
install and run the plugin form within this local instance. Is there API
that i should use? if not, what are the different ways i can do this?

Thank you very much,
Kumar Subramanian.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a5469c6a-d011-4923-a5f0-6ec9ebcfb6e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You have to include transitive dependencies also, here Lucene ICU. Most
IDEs do this by default.

Jörg

On Fri, Jan 16, 2015 at 9:33 PM, Kumar S krskumar108@gmail.com wrote:

Hi Jorg,
Thanks!

I get NoClassDefFound:
org/apache/lucene/analysis/icu/segmentation/icutokenizer

Thanks,
Kumar

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoF117PVWtJeNvsq%3D%3DWjB8tcyhgD0NLKuCrkeJG3s58Hxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.