# Auto completion suggester - output format

**URL:** <https://discuss.elastic.co/t/auto-completion-suggester-output-format/14665>\
**Category:** Elasticsearch\
**Created:** [December 2, 2013, 5:07pm UTC](https://discuss.elastic.co/t/auto-completion-suggester-output-format/14665 "2013-12-02T17:07:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrej](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Andrej](https://discuss.elastic.co/u/Andrej)\
**Post date:** [December 2, 2013, 5:07pm UTC](https://discuss.elastic.co/t/auto-completion-suggester-output-format/14665/1 "2013-12-02T17:07:28Z")

</div>

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](mailto: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](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](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:03am UTC](https://discuss.elastic.co/t/auto-completion-suggester-output-format/14665/2 "2017-07-06T02:03:50Z")

</div>

Closed on July 6, 2017, 2:03am UTC


