# Seeking advice on custom analyzer to catenate word with following letters

**URL:** <https://discuss.elastic.co/t/seeking-advice-on-custom-analyzer-to-catenate-word-with-following-letters/69527>\
**Category:** Elasticsearch\
**Created:** [December 20, 2016, 6:31am UTC](https://discuss.elastic.co/t/seeking-advice-on-custom-analyzer-to-catenate-word-with-following-letters/69527 "2016-12-20T06:31:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youxu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/youxu/32/117375_2.png) [@Youxu](https://discuss.elastic.co/u/Youxu)\
**Post date:** [December 20, 2016, 6:31am UTC](https://discuss.elastic.co/t/seeking-advice-on-custom-analyzer-to-catenate-word-with-following-letters/69527/1 "2016-12-20T06:31:35Z")

</div>

I would like catenate two words if one of word is very short, say just 1 letter.

For example, "direct x" to "directx"

I checked word delimiter token filter, but cannot resolve this case.

Any good approaches?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [December 20, 2016, 10:21am UTC](https://discuss.elastic.co/t/seeking-advice-on-custom-analyzer-to-catenate-word-with-following-letters/69527/2 "2016-12-20T10:21:11Z")

</div>

I suspect you would have to either build synonyms for the special cases that you encounter like this one, or build your own token filter (note: it is not easy).

---

<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:** [January 17, 2017, 10:21am UTC](https://discuss.elastic.co/t/seeking-advice-on-custom-analyzer-to-catenate-word-with-following-letters/69527/3 "2017-01-17T10:21:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
