# Cross\_fields with decompound words

**URL:** <https://discuss.elastic.co/t/cross-fields-with-decompound-words/18160>\
**Category:** Elasticsearch\
**Created:** [June 17, 2014, 3:40pm UTC](https://discuss.elastic.co/t/cross-fields-with-decompound-words/18160 "2014-06-17T15:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernhardt\_Scherer](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@Bernhardt\_Scherer](https://discuss.elastic.co/u/Bernhardt_Scherer)\
**Post date:** [June 17, 2014, 3:40pm UTC](https://discuss.elastic.co/t/cross-fields-with-decompound-words/18160/1 "2014-06-17T15:40:33Z")

</div>

Hi there,

I have a question concerning the decompounding of the search term.

Use case:

- Search is a multi match search on "name" and "category"
- cross\_fields is used: each of the search terms need to be in one of the  
searched fields
- There is a product named "holzspiralbohrer"
- There is a product named "bohrer" in the category "holz"

-User is looking for "holzspiralbohrer" but doesn't know the exact  
terminology and types in the search term "holzbohrer"

In order to deliver results for "holzbohrer" I wanted to decompound the  
search term into "holz" and "bohrer".

To deliver the proper result, I would need to define something like this  
rule:

IF a search word gets decompounded ("holzbohrer" -\> "holz" "bohrer")  
THEN the decompounded parts should BOTH match in ONE field

In the stated example:  
-"holzspiralbohrer" should be in the search results  
-"bohrer" in the category "holz" shouldn't be

Is there any way of realizing this?

Many thanks in advance!

Best regards,  
Bernhardt

--  
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/3faedbcd-8759-4d3c-924a-6e797acfb912%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3faedbcd-8759-4d3c-924a-6e797acfb912%40googlegroups.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, 1:21am UTC](https://discuss.elastic.co/t/cross-fields-with-decompound-words/18160/2 "2017-07-06T01:21:46Z")

</div>


