# Index on Elastic search contains and starts with search

**URL:** <https://discuss.elastic.co/t/index-on-elastic-search-contains-and-starts-with-search/256968>\
**Category:** Elasticsearch\
**Created:** [November 28, 2020, 11:47pm UTC](https://discuss.elastic.co/t/index-on-elastic-search-contains-and-starts-with-search/256968 "2020-11-28T23:47:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arup\_chakraborty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arup_chakraborty/32/79858_2.png) [@arup\_chakraborty](https://discuss.elastic.co/u/arup_chakraborty)\
**Post date:** [November 28, 2020, 11:47pm UTC](https://discuss.elastic.co/t/index-on-elastic-search-contains-and-starts-with-search/256968/1 "2020-11-28T23:47:54Z")

</div>

We are using elastic search for faster searching on our organization data . The data model has organization id, address, organization name, business start date and organization contacts array .  
We have asked to perform string contains search and string starts with search on organization id and/or organization name field  
For example,  
\</\>  
organization.name:”abc\*” or organization.id:”abc”  
organization.name:”abc\*” and organization.id:”_abc_”  
organization.name:”_abc_” and organization.id:”abc\*”  
\</\>

Since we need to use both on same field using Ngram analyzer is not working  
Please advise

---

<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:** [December 26, 2020, 11:47pm UTC](https://discuss.elastic.co/t/index-on-elastic-search-contains-and-starts-with-search/256968/2 "2020-12-26T23:47:55Z")

</div>

Closed on December 26, 2020, 11:47pm UTC

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