I have this query, I would like to search in all query but exclude some fields
let pipeline = [{
$search: {
index: "index",
'compound': {
'must': {
'text': {
'path': 'x',
'query': arg.x
}
},
'filter': {
text: {
query: arg.filterBy,
path: {
wildcard: '*'
}
}
}
}
}
},
{
$project: {
}
}
]