# Contains Query or Partial matching in Elasticsearch

**URL:** <https://discuss.elastic.co/t/contains-query-or-partial-matching-in-elasticsearch/150129>\
**Category:** Elasticsearch\
**Created:** [September 27, 2018, 7:05am UTC](https://discuss.elastic.co/t/contains-query-or-partial-matching-in-elasticsearch/150129 "2018-09-27T07:05:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikesh/32/86579_2.png) [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Post date:** [September 27, 2018, 7:05am UTC](https://discuss.elastic.co/t/contains-query-or-partial-matching-in-elasticsearch/150129/1 "2018-09-27T07:05:23Z")

</div>

Hi all,  
I'm looking to search a word say "amend" which may be present in data as "amending", "amendment" or even "\*amend". Which is the best method to search words like these? I know wildcard can achieve this but I am restricted to not using it due to my other part of the code. What are the different ways which provides better search performance?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [September 27, 2018, 9:00am UTC](https://discuss.elastic.co/t/contains-query-or-partial-matching-in-elasticsearch/150129/2 "2018-09-27T09:00:39Z")

</div>

[Stemming](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-snowball-tokenfilter.html) or [ngrams](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-ngram-tokenfilter.html) are index-time solutions to preparing words for fast partial search

---

<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:** [October 25, 2018, 9:00am UTC](https://discuss.elastic.co/t/contains-query-or-partial-matching-in-elasticsearch/150129/3 "2018-10-25T09:00:42Z")

</div>

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