# Matching the middle or the end part of a word elasticsearch

**URL:** <https://discuss.elastic.co/t/matching-the-middle-or-the-end-part-of-a-word-elasticsearch/221444>\
**Category:** Elasticsearch\
**Created:** [February 28, 2020, 2:03pm UTC](https://discuss.elastic.co/t/matching-the-middle-or-the-end-part-of-a-word-elasticsearch/221444 "2020-02-28T14:03:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yassine\_Nifa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yassine_nifa/32/63534_2.png) [@Yassine\_Nifa](https://discuss.elastic.co/u/Yassine_Nifa)\
**Post date:** [February 28, 2020, 2:03pm UTC](https://discuss.elastic.co/t/matching-the-middle-or-the-end-part-of-a-word-elasticsearch/221444/1 "2020-02-28T14:03:37Z")

</div>

Hello  
I am new to elasticsearch, I use it to store my dataset.  
I created a IHM search engine where I can type a query and get the response

I would like to know if there is a way to match the middle or the end part of a word with elasticsearch.

Thank you

---

<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:** [February 28, 2020, 2:49pm UTC](https://discuss.elastic.co/t/matching-the-middle-or-the-end-part-of-a-word-elasticsearch/221444/2 "2020-02-28T14:49:20Z")

</div>

Welcome!

You can have a look at [ngrams](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-ngram-tokenizer.html) and [edge ngrams](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-edgengram-tokenizer.html).

---

<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:** [March 27, 2020, 2:49pm UTC](https://discuss.elastic.co/t/matching-the-middle-or-the-end-part-of-a-word-elasticsearch/221444/3 "2020-03-27T14:49:23Z")

</div>

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