# ES completion suggest like Google does?

**URL:** <https://discuss.elastic.co/t/es-completion-suggest-like-google-does/22685>\
**Category:** Elasticsearch\
**Created:** [March 16, 2015, 1:42pm UTC](https://discuss.elastic.co/t/es-completion-suggest-like-google-does/22685 "2015-03-16T13:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Izzat\_Sabbagh\_Rodrig](https://avatars.discourse-cdn.com/v4/letter/i/f04885/32.png) [@Izzat\_Sabbagh\_Rodrig](https://discuss.elastic.co/u/Izzat_Sabbagh_Rodrig)\
**Post date:** [March 16, 2015, 1:42pm UTC](https://discuss.elastic.co/t/es-completion-suggest-like-google-does/22685/1 "2015-03-16T13:42:33Z")

</div>

Hi,

I have been trying to achieve the Google Completion suggestion feature in  
ES, but I could not success till now. Lets take a look to what I have done:

We have created in ES a “MyIndex” index. Associated to that index, we have  
a type “”Information” where we defined a field “Data”. Once we have this,  
we created the following documents:

PUT localhost:9200/example/information/1{  
“Data": “I need help for my family"  
}

PUT localhost:9200/example/information/2{  
“Data": “I want to help for searching info in internet"  
}

PUT localhost:9200/example/information/3{  
“Data": “I give help for managing people life”

}

What we need is, given this documents, when a user searchs for “help” that  
ES returns completion suggestions like Google does. So, if the user types  
“help”, ES should shows suggestions like:

help for my family  
help for searching  
help for managing

Is tha possible with ES?

Thanks in advance,

Regards,

Izzat

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/58a96cb7-443c-4247-8ce6-a1c0978efb82%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58a96cb7-443c-4247-8ce6-a1c0978efb82%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![cching](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cching/32/44800_2.png) [@cching](https://discuss.elastic.co/u/cching)\
**Post date:** [March 16, 2015, 1:45pm UTC](https://discuss.elastic.co/t/es-completion-suggest-like-google-does/22685/2 "2015-03-16T13:45:55Z")

</div>

Have you seen the documentation for the suggest API?

> **[Suggesters | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html)**

I've got a demo working with that, it was pretty easy to setup.

On Monday, March 16, 2015 at 8:42:34 AM UTC-5, Izzat Sabbagh Rodríguez  
wrote:

> Hi,
> 
> I have been trying to achieve the Google Completion suggestion feature in  
> ES, but I could not success till now. Lets take a look to what I have done:
> 
> We have created in ES a “MyIndex” index. Associated to that index, we have  
> a type “”Information” where we defined a field “Data”. Once we have this,  
> we created the following documents:
> 
> PUT localhost:9200/example/information/1{  
> “Data": “I need help for my family"  
> }
> 
> PUT localhost:9200/example/information/2{  
> “Data": “I want to help for searching info in internet"  
> }
> 
> PUT localhost:9200/example/information/3{  
> “Data": “I give help for managing people life”
> 
> }
> 
> What we need is, given this documents, when a user searchs for “help” that  
> ES returns completion suggestions like Google does. So, if the user types  
> “help”, ES should shows suggestions like:
> 
> help for my family  
> help for searching  
> help for managing
> 
> Is tha possible with ES?
> 
> Thanks in advance,
> 
> Regards,
> 
> Izzat

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3b3f5730-8ff6-498b-b484-1c0b3b9e5049%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3b3f5730-8ff6-498b-b484-1c0b3b9e5049%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:26am UTC](https://discuss.elastic.co/t/es-completion-suggest-like-google-does/22685/3 "2017-07-06T00:26:33Z")

</div>


