# Manipulate token positions in analyzer

**URL:** <https://discuss.elastic.co/t/manipulate-token-positions-in-analyzer/38303>\
**Category:** Elasticsearch\
**Created:** [January 4, 2016, 10:05am UTC](https://discuss.elastic.co/t/manipulate-token-positions-in-analyzer/38303 "2016-01-04T10:05:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kresimirus](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@kresimirus](https://discuss.elastic.co/u/kresimirus)\
**Post date:** [January 4, 2016, 10:05am UTC](https://discuss.elastic.co/t/manipulate-token-positions-in-analyzer/38303/1 "2016-01-04T10:05:42Z")

</div>

I have a compounder token filter that decompunds German words during search time. Decompouder places all resulting tokens on same postition e.g.

hammerstiel(1) -\> hammerstiel(1), hammer(1) and stiel(1)

If someone searches for "hammerstiel" I want to return all product that contain hammer AND stiel (not necessary "hammerstiel"). If I use default decompouder that puts all tokens on same position then this search would return all products that have "hammer" OR "stiel".

How can I manipulate token position during search time? Or I can configure match query somehow?  
Any relevant link on token positions and their influence during search would be helpful.

---

<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:26pm UTC](https://discuss.elastic.co/t/manipulate-token-positions-in-analyzer/38303/2 "2017-07-05T23:26:21Z")

</div>


