# Autocomplete enhancement

**URL:** <https://discuss.elastic.co/t/autocomplete-enhancement/225473>\
**Category:** Elasticsearch\
**Created:** [March 27, 2020, 11:40pm UTC](https://discuss.elastic.co/t/autocomplete-enhancement/225473 "2020-03-27T23:40:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijay2/32/65235_2.png) [@vijay2](https://discuss.elastic.co/u/vijay2)\
**Post date:** [March 27, 2020, 11:40pm UTC](https://discuss.elastic.co/t/autocomplete-enhancement/225473/1 "2020-03-27T23:40:00Z")

</div>

Hello,  
I have built a e-commerce autocomplete feature which works with the product names.  
Searching “Gucci” gives me phrases found in the rest of the product title.  
But I would like to build something like Amazon,  
E.g. when I search for Gucci, my suggestion should be like

1. Gucci Wallet for men
2. Gucci shirts for men
3. Gucci shirts for women  
Can you please help on how to implement this kind of implementation.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 30, 2020, 2:33pm UTC](https://discuss.elastic.co/t/autocomplete-enhancement/225473/2 "2020-03-30T14:33:03Z")

</div>

Have you checked out the [search-as-you-type datatype](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/search-as-you-type.html) - which might cover a lot of the functionality you need.

---

<div class="post-metadata">

**Author:** ![vijay2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijay2/32/65235_2.png) [@vijay2](https://discuss.elastic.co/u/vijay2)\
**Post date:** [March 30, 2020, 2:56pm UTC](https://discuss.elastic.co/t/autocomplete-enhancement/225473/3 "2020-03-30T14:56:58Z")

</div>

The only difference I could find in elastic 7.6 documentation is it provides matches with terms at any position  
I.e infix completion.

Which is not what I am looking for.  
Any documentation or links would be helpful for me.

---

<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 27, 2020, 2:56pm UTC](https://discuss.elastic.co/t/autocomplete-enhancement/225473/4 "2020-04-27T14:56:58Z")

</div>

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