# How to use es analyzer for compound words?

**URL:** <https://discuss.elastic.co/t/how-to-use-es-analyzer-for-compound-words/20380>\
**Category:** Elasticsearch\
**Created:** [October 22, 2014, 2:09pm UTC](https://discuss.elastic.co/t/how-to-use-es-analyzer-for-compound-words/20380 "2014-10-22T14:09:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebninse](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sebninse](https://discuss.elastic.co/u/sebninse)\
**Post date:** [October 22, 2014, 2:09pm UTC](https://discuss.elastic.co/t/how-to-use-es-analyzer-for-compound-words/20380/1 "2014-10-22T14:09:57Z")

</div>

here is an example for an index with some documents containing dutch  
compound words.

> <https://gist.github.com/herrvonb/0a247aa7dfd0d155b418>

"plaatstaal" is a dutch compound word. So after the custom analyzer "dutch"  
has been assigned to the field test I expected a search for "plaat" would  
return at least one hit.  
That's what i get:

search for plaat  
{  
"took" : 2,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 1,  
"successful" : 1,  
"failed" : 0  
},  
"hits" : {  
"total" : 0,  
"max\_score" : null,  
"hits" : []  
}  
}

Any idea why this is not working?  
Thanks for your help

--  
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/5f61d2c7-0385-4a9c-adb0-600c2f442e58%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f61d2c7-0385-4a9c-adb0-600c2f442e58%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:** [October 22, 2014, 4:08pm UTC](https://discuss.elastic.co/t/how-to-use-es-analyzer-for-compound-words/20380/2 "2014-10-22T16:08:38Z")

</div>

For decompounding, you need a more sophisticated algorithm, like in my  
plugin

> **[GitHub - jprante/elasticsearch-analysis-decompound: Decompounding Plugin for...](https://github.com/jprante/elasticsearch-analysis-decompound)**
>
> Decompounding Plugin for Elasticsearch. Contribute to jprante/elasticsearch-analysis-decompound development by creating an account on GitHub.

which provides decompounding for german words.

Jörg

On Wed, Oct 22, 2014 at 4:09 PM, sebninse [sebninse@gmail.com](mailto:sebninse@gmail.com) wrote:

> here is an example for an index with some documents containing dutch  
> compound words.  
> [Creating new elasticsearch index, with custom analyzer: stemming dutch compound words, finally run query · GitHub](https://gist.github.com/herrvonb/0a247aa7dfd0d155b418)
> 
> "plaatstaal" is a dutch compound word. So after the custom analyzer  
> "dutch" has been assigned to the field test I expected a search for "plaat"  
> would return at least one hit.  
> That's what i get:
> 
> search for plaat  
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 1,  
> "successful" : 1,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> Any idea why this is not working?  
> Thanks for your help
> 
> --  
> 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/5f61d2c7-0385-4a9c-adb0-600c2f442e58%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f61d2c7-0385-4a9c-adb0-600c2f442e58%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/5f61d2c7-0385-4a9c-adb0-600c2f442e58%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5f61d2c7-0385-4a9c-adb0-600c2f442e58%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/CAKdsXoGVKKrxKoZ6JKaACj-dHVuXF9m-3H8hJkAwD0ZaP9dubA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGVKKrxKoZ6JKaACj-dHVuXF9m-3H8hJkAwD0ZaP9dubA%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:54am UTC](https://discuss.elastic.co/t/how-to-use-es-analyzer-for-compound-words/20380/3 "2017-07-06T00:54:24Z")

</div>


