# Edge\_ngram anchoring to the back

**URL:** <https://discuss.elastic.co/t/edge-ngram-anchoring-to-the-back/80479>\
**Category:** Elasticsearch\
**Created:** [March 29, 2017, 12:26pm UTC](https://discuss.elastic.co/t/edge-ngram-anchoring-to-the-back/80479 "2017-03-29T12:26:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 29, 2017, 12:50pm UTC](https://discuss.elastic.co/t/edge-ngram-anchoring-to-the-back/80479/2 "2017-03-29T12:50:29Z")

</div>

You can use a combination of:

- [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/analysis-reverse-tokenfilter.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/analysis-reverse-tokenfilter.html)
- [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/analysis-edgengram-tokenfilter.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/analysis-edgengram-tokenfilter.html)

["reverse", "edge", "reverse"] so it will produce:

- `[kciuQ]`
- `[kc, kci, kciu, kciuQ]`
- `[ck, ick, uick, Quick]`

Thanks to @jpountz for the solution. 🙂

---

_[View the full topic](https://discuss.elastic.co/t/edge-ngram-anchoring-to-the-back/80479)._
