# Autocomplete Query

**URL:** <https://discuss.elastic.co/t/autocomplete-query/244875>\
**Category:** Elasticsearch\
**Created:** [August 13, 2020, 12:18pm UTC](https://discuss.elastic.co/t/autocomplete-query/244875 "2020-08-13T12:18:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chivas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chivas/32/58800_2.png) [@chivas](https://discuss.elastic.co/u/chivas)\
**Post date:** [August 13, 2020, 12:18pm UTC](https://discuss.elastic.co/t/autocomplete-query/244875/1 "2020-08-13T12:18:37Z")

</div>

Hi,  
I have currently implemented autocomplete feature by using search\_as\_you\_type datatype, I use the copy\_to parameter to copy vaules from multiple fields into a new field.  
e.g. values in name, address, designation fields are copied to a new field called person\_search which is of search\_as\_you\_type datatype. This works fine for me currently, but I am looking to refine it further by also providing the original fields also as part of the autocomplete, as Amazon does below

![oie_ZxSTmk55qqNC](https://us1.discourse-cdn.com/elastic/original/3X/4/0/404297a6100c0461f6fcb65a4db2abec325629b0.jpeg)

So as in above case apart from provinding autocomplete for elasticse, it also provides autocomplete with specific categories like "In Books" and "In Kindle Store".

So in my case if my data is as below  
name : Joe  
address : Joe Plaza  
designation : An Average Joe  
person\_search : Joe Joe Plaza An Average Joe

Can I provide in the autocomplete box when the user types in Jo,  
Joe in **name**  
joe in **address**  
Joe in **designation**  
Joe Joe Plaza An Average Joe

Let me know if this is possible, and any pointers to the documentation will be helpful

Thanks!

---

<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:** [September 10, 2020, 12:19pm UTC](https://discuss.elastic.co/t/autocomplete-query/244875/2 "2020-09-10T12:19:06Z")

</div>

Closed on September 10, 2020, 12:19pm UTC

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