# How do I implement search-autocomplete like on http://www.elasticsearch.org or google?

**URL:** <https://discuss.elastic.co/t/how-do-i-implement-search-autocomplete-like-on-http-www-elasticsearch-org-or-google/11950>\
**Category:** Elasticsearch\
**Created:** [May 14, 2013, 9:34am UTC](https://discuss.elastic.co/t/how-do-i-implement-search-autocomplete-like-on-http-www-elasticsearch-org-or-google/11950 "2013-05-14T09:34:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_2](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Martin\_2](https://discuss.elastic.co/u/Martin_2)\
**Post date:** [May 14, 2013, 9:34am UTC](https://discuss.elastic.co/t/how-do-i-implement-search-autocomplete-like-on-http-www-elasticsearch-org-or-google/11950/1 "2013-05-14T09:34:08Z")

</div>

Is there a tutorial available how to implement an search-autocomplete like  
on [http://www.elasticsearch.org](http://www.elasticsearch.org) or goolge ?  
Can it be done with the new suggest-API ?  
I tried something like:  
\_suggest  
{  
"my-suggestion" : {  
"text" : "berlin",  
"term" : {  
"size" : 6,  
"field" : "title"  
}  
}  
}  
but I only get back single words similar to "berlin" and no further words  
like in the google-search-autocomplete.  
Can I do this with the suggest-API ?

Thanks a lot  
Martin

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:36am UTC](https://discuss.elastic.co/t/how-do-i-implement-search-autocomplete-like-on-http-www-elasticsearch-org-or-google/11950/2 "2017-07-06T02:36:49Z")

</div>


