# Completion Suggest - Set Returned Result Size

**URL:** <https://discuss.elastic.co/t/completion-suggest-set-returned-result-size/13832>\
**Category:** Elasticsearch\
**Created:** [October 3, 2013, 2:12am UTC](https://discuss.elastic.co/t/completion-suggest-set-returned-result-size/13832 "2013-10-03T02:12:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johny\_Lam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johny_lam/32/1487_2.png) [@Johny\_Lam](https://discuss.elastic.co/u/Johny_Lam)\
**Post date:** [October 3, 2013, 2:12am UTC](https://discuss.elastic.co/t/completion-suggest-set-returned-result-size/13832/1 "2013-10-03T02:12:47Z")

</div>

Is there some way to configure the number of results that's returned by  
using completion suggestion?

I looked at

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html)

and

[http://www.elasticsearch.org/guide/reference/api/search/completion-suggest/](http://www.elasticsearch.org/guide/reference/api/search/completion-suggest/)

but there doesn't seem to be anything about configuring the result set size.

The \_suggest REST endpoint doesn't take a "size" parameter and if I use the  
\_search endpoint, the size parameter doesn't affect the suggest results.

--  
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:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 3, 2013, 4:05pm UTC](https://discuss.elastic.co/t/completion-suggest-set-returned-result-size/13832/2 "2013-10-03T16:05:55Z")

</div>

Hey,

the completion suggester accepts a 'size' parameter, see the samples at

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Can you maybe put your query online as a gist, so we can check out, what is  
wrong?

--Alex

On Thu, Oct 3, 2013 at 4:12 AM, Johny Lam [johny.lam@gmail.com](mailto:johny.lam@gmail.com) wrote:

> Is there some way to configure the number of results that's returned by  
> using completion suggestion?
> 
> I looked at
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html)
> 
> and
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/completion-suggest/)
> 
> but there doesn't seem to be anything about configuring the result set  
> size.
> 
> The \_suggest REST endpoint doesn't take a "size" parameter and if I use  
> the \_search endpoint, the size parameter doesn't affect the suggest results.
> 
> --  
> 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).

--  
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:** ![Johny\_Lam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johny_lam/32/1487_2.png) [@Johny\_Lam](https://discuss.elastic.co/u/Johny_Lam)\
**Post date:** [October 3, 2013, 6:11pm UTC](https://discuss.elastic.co/t/completion-suggest-set-returned-result-size/13832/3 "2013-10-03T18:11:43Z")

</div>

Thanks, I apparently missed that.

On Thursday, October 3, 2013 9:05:55 AM UTC-7, Alexander Reelsen wrote:

> Hey,
> 
> the completion suggester accepts a 'size' parameter, see the samples at  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters.html)
> 
> Can you maybe put your query online as a gist, so we can check out, what  
> is wrong?
> 
> --Alex
> 
> On Thu, Oct 3, 2013 at 4:12 AM, Johny Lam \<[john...@gmail.com](mailto:john...@gmail.com) \<javascript:\>
> 
> > wrote:
> 
> > Is there some way to configure the number of results that's returned by  
> > using completion suggestion?
> > 
> > I looked at
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html)
> > 
> > and
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/completion-suggest/)
> > 
> > but there doesn't seem to be anything about configuring the result set  
> > size.
> > 
> > The \_suggest REST endpoint doesn't take a "size" parameter and if I use  
> > the \_search endpoint, the size parameter doesn't affect the suggest results.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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:13am UTC](https://discuss.elastic.co/t/completion-suggest-set-returned-result-size/13832/4 "2017-07-06T02:13:54Z")

</div>


