Does suggest work with an array of phrases?


(Michael Mata) #1

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?


(system) #2