# Elastic search : Is there any suffix query/filter

**URL:** <https://discuss.elastic.co/t/elastic-search-is-there-any-suffix-query-filter/10661>\
**Category:** Elasticsearch\
**Created:** [February 8, 2013, 5:52am UTC](https://discuss.elastic.co/t/elastic-search-is-there-any-suffix-query-filter/10661 "2013-02-08T05:52:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohit\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@mohit\_Kumar](https://discuss.elastic.co/u/mohit_Kumar)\
**Post date:** [February 8, 2013, 5:52am UTC](https://discuss.elastic.co/t/elastic-search-is-there-any-suffix-query-filter/10661/1 "2013-02-08T05:52:12Z")

</div>

Sir,

Is there any suffix query in elastic search. I can retrieve data from  
document by using prefix query. how can I retrieve data from document by  
using a suffix of any string. for example by using prefix we can search a  
string like "_Edu_cation" with "Edu"  
{  
"prefix" : {  
"system":"Edu"  
}  
}

It is possible to search same string with its suffix i.e. "Edu_cation_"  
with its "ion" or with its middle letters like "cat".

Thanks and regards  
Mohit Kumar Yadav

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 8, 2013, 6:00am UTC](https://discuss.elastic.co/t/elastic-search-is-there-any-suffix-query-filter/10661/2 "2013-02-08T06:00:08Z")

</div>

You should look at Ngram tokenizer. It will probably help here.

## HTH

David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 8 févr. 2013 à 06:52, Mohit Kumar Yadav [mohit.kumar.ngi@gmail.com](mailto:mohit.kumar.ngi@gmail.com) a écrit :

Sir,

Is there any suffix query in elastic search. I can retrieve data from document by using prefix query. how can I retrieve data from document by using a suffix of any string. for example by using prefix we can search a string like "Education" with "Edu"  
{  
"prefix" : {  
"system":"Edu"  
}  
}

It is possible to search same string with its suffix i.e. "Education" with its "ion" or with its middle letters like "cat".

## Thanks and regards Mohit Kumar Yadav

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:52am UTC](https://discuss.elastic.co/t/elastic-search-is-there-any-suffix-query-filter/10661/3 "2017-07-06T02:52:29Z")

</div>


