# Completion Suggestor- Multi value field in a single document

**URL:** https://discuss.elastic.co/t/completion-suggestor-multi-value-field-in-a-single-document/16268
**Category:** Elasticsearch
**Created:** [March 10, 2014, 2:52pm UTC](https://discuss.elastic.co/t/completion-suggestor-multi-value-field-in-a-single-document/16268 "2014-03-10T14:52:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)
#### Post date: [March 10, 2014, 2:52pm UTC](https://discuss.elastic.co/t/completion-suggestor-multi-value-field-in-a-single-document/16268/1 "2014-03-10T14:52:15Z")

</div>

Hello ,

Here its told how to index data for completion suggester -  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html#search-suggesters-completion](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html#search-suggesters-completion)

But then it assumes that there is only one value for the field suggest.  
What happens if there are multiple values for the field suggest.  
How can we give separate input/output for multi values in the same field.

Thanks  
Vineeth

--  
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/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [March 12, 2014, 9:57am UTC](https://discuss.elastic.co/t/completion-suggestor-multi-value-field-in-a-single-document/16268/2 "2014-03-12T09:57:49Z")

</div>

Hey,

there is only one output for multiple suggestions. Maybe the accompanying  
blog post will help you: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/you-complete-me/)  
I am not sure what you mean with 'only one value for the field suggest',  
maybe you can explain that.  
It would be great, if you could come up with a few examples of how you  
expect the suggester to work and we can see, if the completion suggester  
supports your requirements.

--Alex

On Mon, Mar 10, 2014 at 3:52 PM, vineeth mohan [vm.vineethmohan@gmail.com](mailto:vm.vineethmohan@gmail.com)wrote:

> Hello ,
> 
> Here its told how to index data for completion suggester -  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html#search-suggesters-completion)
> 
> But then it assumes that there is only one value for the field suggest.  
> What happens if there are multiple values for the field suggest.  
> How can we give separate input/output for multi values in the same field.
> 
> Thanks  
> Vineeth
> 
> --  
> 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/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAGCwEM\_qg\_FQa8z%2BtUq8OqSHQHEwsrZpm-KvawBBYTcAGGStmw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_qg_FQa8z%2BtUq8OqSHQHEwsrZpm-KvawBBYTcAGGStmw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)
#### Post date: [March 12, 2014, 1:37pm UTC](https://discuss.elastic.co/t/completion-suggestor-multi-value-field-in-a-single-document/16268/3 "2014-03-12T13:37:58Z")

</div>

Hello Alexander ,

I got it working. What i wanted was to give multiple input/output pair and  
in the example it was only for a single value. I gave the suggest value as  
an array it worked like a charm.

Thanks  
Vineeth

On Wed, Mar 12, 2014 at 3:27 PM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> Hey,
> 
> there is only one output for multiple suggestions. Maybe the accompanying  
> blog post will help you:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/you-complete-me/)  
> I am not sure what you mean with 'only one value for the field suggest',  
> maybe you can explain that.  
> It would be great, if you could come up with a few examples of how you  
> expect the suggester to work and we can see, if the completion suggester  
> supports your requirements.
> 
> --Alex
> 
> On Mon, Mar 10, 2014 at 3:52 PM, vineeth mohan [vm.vineethmohan@gmail.com](mailto:vm.vineethmohan@gmail.com)wrote:
> 
> > Hello ,
> > 
> > Here its told how to index data for completion suggester -  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html#search-suggesters-completion)
> > 
> > But then it assumes that there is only one value for the field suggest.  
> > What happens if there are multiple values for the field suggest.  
> > How can we give separate input/output for multi values in the same field.
> > 
> > Thanks  
> > Vineeth
> > 
> > --  
> > 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/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5n%2Br%3DYer9NAuzcBYkAjFBRjU7XC0yWcGwR-UhDVk46Z%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAGCwEM\_qg\_FQa8z%2BtUq8OqSHQHEwsrZpm-KvawBBYTcAGGStmw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_qg_FQa8z%2BtUq8OqSHQHEwsrZpm-KvawBBYTcAGGStmw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAGCwEM\_qg\_FQa8z%2BtUq8OqSHQHEwsrZpm-KvawBBYTcAGGStmw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_qg_FQa8z%2BtUq8OqSHQHEwsrZpm-KvawBBYTcAGGStmw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAGdPd5mkrhZG\_Ttu5hiF0JoOCwmEFHbgckk%3D4uqpXP4%3D0akFBg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5mkrhZG_Ttu5hiF0JoOCwmEFHbgckk%3D4uqpXP4%3D0akFBg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:43am UTC](https://discuss.elastic.co/t/completion-suggestor-multi-value-field-in-a-single-document/16268/4 "2017-07-06T01:43:48Z")

</div>


