Auto completion suggester - output format

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Auto completion suggester - output format


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?


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 [hidden email].
To view this discussion on the web visit
For more options, visit