Hi, as explained in the latest docs, source filtering can be performed. However, I couldn't figure out how to do this using the JS API for completion suggestions. Is this supported?
Right now my working query without the filtering is constructed like this:
es.suggest({
index: 'my index name',
body: {
mySuggest: {
prefix: 'some prefix',
completion: {
field: "suggest"
}
}
}
})
Thanks.