# Does suggest work with an array of phrases?

**URL:** <https://discuss.elastic.co/t/does-suggest-work-with-an-array-of-phrases/42205>\
**Category:** Elasticsearch\
**Created:** [February 19, 2016, 1:48am UTC](https://discuss.elastic.co/t/does-suggest-work-with-an-array-of-phrases/42205 "2016-02-19T01:48:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelvmata](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michaelvmata/32/7903_2.png) [@michaelvmata](https://discuss.elastic.co/u/michaelvmata)\
**Post date:** [February 19, 2016, 1:48am UTC](https://discuss.elastic.co/t/does-suggest-work-with-an-array-of-phrases/42205/1 "2016-02-19T01:48:43Z")

</div>

I have bit of a puzzle with suggest.

If you have --  
input: ["John", "Smith"]  
output: "John Smith"

You can provide the term "S" and get the option output of "John Smith". Awesome.

What if you now have --  
input: ["John Smith", "Joe Black"]

And you want to provide term "B" to get get the option output of "Joe Black", how do you do it?

---

<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 5, 2017, 11:15pm UTC](https://discuss.elastic.co/t/does-suggest-work-with-an-array-of-phrases/42205/2 "2017-07-05T23:15:03Z")

</div>


