Index on Elastic search contains and starts with search

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

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