Auto completion suggester - output format


(Andrej) #1

Hi,

I was thinking about the output format of the completion suggester. The
returned object contains an array that includes an array, like

"song-suggest" : [ {
"text" : "n",
"offset" : 0,
"length" : 4,
"options" : [ {
"text" : "Nirvana - Nevermind",
"score" : 34.0, "payload" : {"artistId":2321}
} ]
} ]

What I was wondering, is there a case where the outer array can have a size not equal to 1 and what would such a query look like? Is the outer array just for convenience to make the response look the same for all suggester?

Thanks!
Andrej

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/61014e3e-8e46-4d69-85d4-ecb224695f41%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #2