How to use use query with Suggester


(Deepak Gupta) #1

I want suggestion for the given text and the entitlement
. How can I achieve this
"text" : "ora"
"entitlements" : [ "entitlement#1","entitlement#2"]

POST autocompletetest/_search
{
"suggest": {
"song-suggest" : {
"text" : "ora",
"completion" : {
"field" : "orgunit.suggest"
}
}
},
"query": {
"terms": {
"entitlements": [
"entitlement#1",
"entitlement#2"
]
}
}
}


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.