# How to do the autocomplete/suggestion with elastic search and couchdb

**URL:** <https://discuss.elastic.co/t/how-to-do-the-autocomplete-suggestion-with-elastic-search-and-couchdb/9527>\
**Category:** Elasticsearch\
**Created:** [November 2, 2012, 11:29am UTC](https://discuss.elastic.co/t/how-to-do-the-autocomplete-suggestion-with-elastic-search-and-couchdb/9527 "2012-11-02T11:29:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![choudharynarendra](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@choudharynarendra](https://discuss.elastic.co/u/choudharynarendra)\
**Post date:** [November 2, 2012, 11:29am UTC](https://discuss.elastic.co/t/how-to-do-the-autocomplete-suggestion-with-elastic-search-and-couchdb/9527/1 "2012-11-02T11:29:23Z")

</div>

Hi ,

I am new to the elastic search and want to implement the auto-complete/suggestion on key pressed based on the documents which i have in the couchdb.. what i have done is stored the profiles in the form of json in couchdb and i have made the river plugin to link that db in the elastic-search.

Can any body suggest me how to go ahead with the approach for the autocomplete/suggestions.

Thanks  
Narendra

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 6, 2012, 1:13pm UTC](https://discuss.elastic.co/t/how-to-do-the-autocomplete-suggestion-with-elastic-search-and-couchdb/9527/2 "2012-11-06T13:13:03Z")

</div>

You should first define a mapping for your fields and use a EdgeNGram analyzer.

Or you can use the suggester plugin: [GitHub - spinscale/elasticsearch-suggest-plugin: Plugin for elasticsearch which uses the lucene FSTSuggester](https://github.com/spinscale/elasticsearch-suggest-plugin)

Does it help?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 2 nov. 2012 à 12:29, choudharynarendra [choudharynarendra@gmail.com](mailto:choudharynarendra@gmail.com) a écrit :

> Hi ,
> 
> I am new to the Elasticsearch and want to implement the  
> auto-complete/suggestion on key pressed based on the documents which i have  
> in the couchdb.. what i have done is stored the profiles in the form of json  
> in couchdb and i have made the river plugin to link that db in the  
> elastic-search.
> 
> Can any body suggest me how to go ahead with the approach for the  
> autocomplete/suggestions.
> 
> Thanks  
> Narendra
> 
> --  
> View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/How-to-do-the-autocomplete-suggestion-with-elastic-search-and-couchdb-tp4024726.html](http://elasticsearch-users.115913.n3.nabble.com/How-to-do-the-autocomplete-suggestion-with-elastic-search-and-couchdb-tp4024726.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --

--

---

<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, 3:05am UTC](https://discuss.elastic.co/t/how-to-do-the-autocomplete-suggestion-with-elastic-search-and-couchdb/9527/3 "2017-07-06T03:05:57Z")

</div>


