# Getting the document associated with the CompletionSuggestion.Entry.Option

**URL:** <https://discuss.elastic.co/t/getting-the-document-associated-with-the-completionsuggestion-entry-option/14137>\
**Category:** Elasticsearch\
**Created:** [October 28, 2013, 8:02am UTC](https://discuss.elastic.co/t/getting-the-document-associated-with-the-completionsuggestion-entry-option/14137 "2013-10-28T08:02:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barak\_Yaish](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Barak\_Yaish](https://discuss.elastic.co/u/Barak_Yaish)\
**Post date:** [October 28, 2013, 8:02am UTC](https://discuss.elastic.co/t/getting-the-document-associated-with-the-completionsuggestion-entry-option/14137/1 "2013-10-28T08:02:49Z")

</div>

Hi,

When getting suggests upon SuggestRequest, is the associated document (with  
the type completion field) available in the SuggestReponse?

Thanks.

--  
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:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [October 28, 2013, 8:31am UTC](https://discuss.elastic.co/t/getting-the-document-associated-with-the-completionsuggestion-entry-option/14137/2 "2013-10-28T08:31:52Z")

</div>

Hi,  
no it is not, but you can store a payload containing the id of the document  
to go to when clicking on the suggestion for instance.  
Have a look at this article  
: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/you-complete-me/) , which describes how  
to use the completion suggester.

Cheers  
Luca

On Monday, October 28, 2013 9:02:49 AM UTC+1, barak wrote:

> Hi,
> 
> When getting suggests upon SuggestRequest, is the associated document  
> (with the type completion field) available in the SuggestReponse?
> 
> Thanks.

--  
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:10am UTC](https://discuss.elastic.co/t/getting-the-document-associated-with-the-completionsuggestion-entry-option/14137/3 "2017-07-06T02:10:17Z")

</div>


