Completion Suggest - Set Returned Result Size


(Johny Lam) #1

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

and

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.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #2

Hey,

the completion suggester accepts a 'size' parameter, see the samples at
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 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

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

and

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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.


(Johny Lam) #3

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
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 <javascript:>

wrote:

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

and

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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4