Thanks, work! My final aggregations as follows, in this case i dont need fuzzy edit if i am using wildcard?
Can i improve on the aggregation below? i am using compound with must and filter, but i see you did not use these in your examples.
const agg = [
{
'$search': {
'index': 'quicksend',
"compound": {
"must": [{
"text": {
"query": data.senderId,
"path": "senderId"
},
}],
"filter": [{
"wildcard": {
'query': data.query+'*',
'path': ["emailTo.email", "message", "fileObjects.fileName"],
"allowAnalyzedField": true
}
}]
}
}
},