I have read quite a few articles saying that you can not combine queries with suggesters.
https://github.com/elastic/elasticsearch/issues/19143 is this still true? (old)
If so, what would be the best way to filter on the suggest list? I have a requirement to have suggesters for company names. But the logged in person might only have access to certain companies. I would to be able to do it with my query.
GET company/_search
{
"suggest": {
"company-suggest": {
"prefix": "trans",
"completion": {
"field": "companyName.completion",
"fuzzy": {
"fuzziness": 1
}
}
}
}
}
The other option is "Dirty" is to just filter it afterwards either server-side or clientside , which i dont mind just want to make sure i am doing it the right way