How do you get the exact matched token from the completion suggester ?
eg.
{
"id" : "ID1",
"name" : "AAA BBB CCCC DDD EEE FFFF GGG HHHHH IIII JJJJ KKK LLL 999
888",
"suggest" : {
"input":
["AAA","BBB","CCCC","DDD","EEE","US","California","Framework","IIII","JJJJ","KKK","LLL","999","888"],
"output": *<This should return the matched token only>*
"payload" : {
"id" : "ID1",
"name" : text
}
}
So if a user types cali, the output that needs to be returned to the user
is the matched token "California" instead of the complete string or id.
Thanks
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7b04ed89-814d-48e4-8666-c4f24f45186d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.