# Suggesters with autcomplete on match\_phrase\_prefix

**URL:** <https://discuss.elastic.co/t/suggesters-with-autcomplete-on-match-phrase-prefix/267978>\
**Category:** Elasticsearch\
**Created:** [March 22, 2021, 12:57pm UTC](https://discuss.elastic.co/t/suggesters-with-autcomplete-on-match-phrase-prefix/267978 "2021-03-22T12:57:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BIRENDRA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/birendra/32/64625_2.png) [@BIRENDRA](https://discuss.elastic.co/u/BIRENDRA)\
**Post date:** [March 22, 2021, 12:57pm UTC](https://discuss.elastic.co/t/suggesters-with-autcomplete-on-match-phrase-prefix/267978/1 "2021-03-22T12:57:28Z")

</div>

Hi Team,

I want to create suggester with autocomplete feature. Currently, suggestions are coming on prefix which i need to change. For example: I have machine name as ROV Magnum 001. My current suggester is working fine if I type ROV but if I type Magnum then it won't show in suggestion. I want to implement this. I can use match\_phrase\_prefix but that would not give me suggestions, only results.

Is there any way in which i can search the words from in between and show it as suggestion.

Thanks

---

<div class="post-metadata">

**Author:** ![awenger](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@awenger](https://discuss.elastic.co/u/awenger)\
**Post date:** [March 23, 2021, 12:14pm UTC](https://discuss.elastic.co/t/suggesters-with-autcomplete-on-match-phrase-prefix/267978/2 "2021-03-23T12:14:23Z")

</div>

HI,  
you can make something with aggregation and include regex on the field to have value can be selected in your autocompletion list with the partial value tape by the user. But there is another issue, the regex it's not insensitive.  
See [https://github.com/elastic/elasticsearch/issues/68819](https://github.com/elastic/elasticsearch/issues/68819)

I'm currently working to find another solution. perhaps ... 😉

---

<div class="post-metadata">

**Author:** ![BIRENDRA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/birendra/32/64625_2.png) [@BIRENDRA](https://discuss.elastic.co/u/BIRENDRA)\
**Post date:** [March 23, 2021, 12:18pm UTC](https://discuss.elastic.co/t/suggesters-with-autcomplete-on-match-phrase-prefix/267978/3 "2021-03-23T12:18:27Z")

</div>

Hi Awenger,

Check the below link may be this will help you. I already check this but facing some issue.

> **[Suggesters | Elasticsearch Reference \[7.x\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-suggesters.html#phrase-suggester)**

I am able to tokenize the words but using suggest query i am not able to get the results in options.

---

<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:** [April 20, 2021, 12:19pm UTC](https://discuss.elastic.co/t/suggesters-with-autcomplete-on-match-phrase-prefix/267978/4 "2021-04-20T12:19:25Z")

</div>

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