# ICU analysis plugin with elasticsearch 1.7.1

**URL:** <https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946>\
**Category:** Elasticsearch\
**Created:** [January 23, 2016, 10:35am UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946 "2016-01-23T10:35:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arun\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@Arun\_Agarwal](https://discuss.elastic.co/u/Arun_Agarwal)\
**Post date:** [January 23, 2016, 10:35am UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/1 "2016-01-23T10:35:43Z")

</div>

Hey  
i am trying to use icu analysis 2.7.0 with elasticsearch 1.7.1  
every time i try to run analyze API on a field i get the following error  
"error":"NoClassDefFoundError[Could not initialize class org.apache.lucene.analysis.icu.segmentation.DefaultICUTokenizerConfig]","status":500}

There is no log about this in the logs.  
My analyzer settings are  
"tokenized" : {  
"type" : "custom",  
"filter" : [  
"word\_delimiter",  
"lowercase",  
"icu\_normalizer",  
"icu\_folding",  
"eng\_stm",  
"edge\_ngram"  
],  
"tokenizer" : "icu\_tokenizer"  
},

I ll be able to provide any more information if needed.

At the sametime icu\_collation works on the same index.

---

<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 23, 2016, 12:05pm UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/2 "2016-01-23T12:05:47Z")

</div>

Can you describe all the steps?

How do you install the plugin?  
Do you restart?

All REST calls...

Thanks!

---

<div class="post-metadata">

**Author:** ![Arun\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@Arun\_Agarwal](https://discuss.elastic.co/u/Arun_Agarwal)\
**Post date:** [January 23, 2016, 5:26pm UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/3 "2016-01-23T17:26:15Z")

</div>

Installation,

We copy the jar related to the plugin into the plugins/analysis-icu directory.  
After this we bring up elasticsearch

We dont use the /bin/plugin to install, as copying the jar worked for us, for previous versions of the same plugin and elasticsearch combination.

---

<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 23, 2016, 5:57pm UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/4 "2016-01-23T17:57:36Z")

</div>

That can not work. You need to download the zip file and extract all its content.

```
 bin/plugin 

```

Does that.

---

<div class="post-metadata">

**Author:** ![Arun\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@Arun\_Agarwal](https://discuss.elastic.co/u/Arun_Agarwal)\
**Post date:** [January 23, 2016, 6:34pm UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/5 "2016-01-23T18:34:55Z")

</div>

Is this a new change with 1.7.1, because i have elasticsearch 1.5.4 running in our production system with analysis-icu 2.5, and it followed the same steps as above

---

<div class="post-metadata">

**Author:** ![Arun\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@Arun\_Agarwal](https://discuss.elastic.co/u/Arun_Agarwal)\
**Post date:** [January 23, 2016, 6:58pm UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/6 "2016-01-23T18:58:36Z")

</div>

i did the following

1. shutdown elasticsearch
2. install plugin  
./bin/plugin --install elasticsearch/elasticsearch-analysis-icu/2.7.0  
and still end up with same error when i call analyze
3. restart elasticsearch
4. from kopf try to run a analyze

[2016-01-23 10:57:12] {"method":"POST","transformRequest":[null],"transformResponse":[null],"url":"[https://host:9200/cd-search-v3/\_analyze?analyzer=tokenized","data":"aaa","params":{},"headers":{"Accept":"application/json](https://host:9200/cd-search-v3/_analyze?analyzer=tokenized%22,%22data%22:%22aaa%22,%22params%22:%7B%7D,%22headers%22:%7B%22Accept%22:%22application/json), text/plain, _/_","Content-Type":"application/json;charset=utf-8"}}  
[2016-01-23 10:57:12] REST API output:  
[2016-01-23 10:57:12] {"error":"NoClassDefFoundError[Could not initialize class org.apache.lucene.analysis.icu.segmentation.DefaultICUTokenizerConfig]","status":500}

---

<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 23, 2016, 10:04pm UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/7 "2016-01-23T22:04:40Z")

</div>

May be it was shaded but I doubt it worked.

---

<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 23, 2016, 10:05pm UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/8 "2016-01-23T22:05:52Z")

</div>

Can you post the exact request you sent?

Also could you try with elasticsearch 2.1.1?

---

<div class="post-metadata">

**Author:** ![Arun\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@Arun\_Agarwal](https://discuss.elastic.co/u/Arun_Agarwal)\
**Post date:** [January 24, 2016, 4:51am UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/9 "2016-01-24T04:51:58Z")

</div>

Exact request for what ?  
I dont have the code pulled down for 2.1.1, its gonna take a while to get to 2.1.1. Right now we have to work with 1.7.1

---

<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 24, 2016, 7:19am UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/10 "2016-01-24T07:19:54Z")

</div>

I'd like to see the request which corresponds to:

> from kopf try to run a analyze

And I'm not saying that you must upgrade. I'm just asking if you could try on a dev laptop the same with 2.1. It would help.

---

<div class="post-metadata">

**Author:** ![Arun\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@Arun\_Agarwal](https://discuss.elastic.co/u/Arun_Agarwal)\
**Post date:** [January 24, 2016, 7:29am UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/11 "2016-01-24T07:29:00Z")

</div>

I got the issue, i had lucene-analyzer-icu in two places, which caused the jvm to go haywire when loading the class

Thanks for the help.

---

<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 5, 2017, 11:22pm UTC](https://discuss.elastic.co/t/icu-analysis-plugin-with-elasticsearch-1-7-1/39946/12 "2017-07-05T23:22:08Z")

</div>


