Try our conversational search powered by Generative AI!

Autocomplete size parameter ignored?

Vote:
 

Hi all.

I'm building a search page with autocomplete functionality using the size parameter to limit the number of hits to something other than the default 10, but the call from the local REST service to the Find index seems to ignore it and set size to 10 no matter what I've used. Here's an example of a request with size=1:

# URL
15 /find/rest/autocomplete/get/test?size=1
16 /_autocomplete?prefix=test&size=10&tags=language%3asv%7clanguage%3a[snip]

Anyone recognize this? Any ideas on how to fix it?

Cheers

#113153
Nov 14, 2014 9:35
Vote:
 

This is on version 8.6.0.1055 of Find by the way.

#113154
Nov 14, 2014 9:40
Vote:
 

I'm debugging the call to Find's AutoCompleteController and strangely the size argument to the Get method is 10, even though it is 1 in the URL. Curious.

#113156
Nov 14, 2014 10:23
Vote:
 

Alright, apparently the URL should be /find/rest/autocomplete/get/test/1

Thanks!

Maybe update this http://find.episerver.com/Documentation/stats-autocomplete so that the URL in the example actually works. I think that would be a good idea.

#113162
Edited, Nov 14, 2014 11:11
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.