# Using icu\_collation plugin in Unit Tests

**URL:** <https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670>\
**Category:** Elasticsearch\
**Created:** [January 15, 2015, 8:03pm UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670 "2015-01-15T20:03:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumar\_S](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kumar\_S](https://discuss.elastic.co/u/Kumar_S)\
**Post date:** [January 15, 2015, 8:03pm UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/1 "2015-01-15T20:03:08Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 15, 2015, 8:51pm UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/2 "2015-01-15T20:51:55Z")

</div>

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](mailto: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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/8E14B6ED-B736-4CA8-9200-65E60006CDDC%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Kumar\_S](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kumar\_S](https://discuss.elastic.co/u/Kumar_S)\
**Post date:** [January 15, 2015, 9:47pm UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/3 "2015-01-15T21:47:22Z")

</div>

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](mailto: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](mailto: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)  
> [https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [January 16, 2015, 8:00am UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/4 "2015-01-16T08:00:35Z")

</div>

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](mailto: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](mailto: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](mailto:elasticsearc...@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%  
> > [40googlegroups.com](http://40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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)  
> > [https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGpyUHXde-P4e3YqrcXi2AduDevh-7LsgB7dA3TzStsvw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Kumar\_S](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kumar\_S](https://discuss.elastic.co/u/Kumar_S)\
**Post date:** [January 16, 2015, 8:20pm UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/5 "2015-01-16T20:20:57Z")

</div>

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](mailto: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](mailto: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](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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)  
> > > [https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/c0c6bb22-c79d-49f2-a1db-7ae986627241%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Kumar\_S](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kumar\_S](https://discuss.elastic.co/u/Kumar_S)\
**Post date:** [January 16, 2015, 8:33pm UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/6 "2015-01-16T20:33:00Z")

</div>

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](mailto: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](mailto: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](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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)  
> > > [https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/c09c21a7-0a08-4038-8d4a-693f52dc311d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Kumar\_S](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kumar\_S](https://discuss.elastic.co/u/Kumar_S)\
**Post date:** [January 16, 2015, 9:13pm UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/7 "2015-01-16T21:13:49Z")

</div>

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](mailto: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](mailto: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](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/5f3ebc39-4c13-4d1b-a888-bd101ab46136%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/5a5e82b3-038b-4251-ae2c-f2216dc991f0%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/a5469c6a-d011-4923-a5f0-6ec9ebcfb6e3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [January 16, 2015, 9:13pm UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/8 "2015-01-16T21:13:50Z")

</div>

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](mailto: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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoF117PVWtJeNvsq%3D%3DWjB8tcyhgD0NLKuCrkeJG3s58Hxg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:38am UTC](https://discuss.elastic.co/t/using-icu-collation-plugin-in-unit-tests/21670/9 "2017-07-06T00:38:17Z")

</div>


