I have the following query:
[
{
"$search": {
"compound": {
"should": [
{
"phrase": {
"query": "test phrase",
"path": {
"wildcard": "*"
}
}
}
],
"filter": [
{
"text": {
"path": "owner",
"query": "owner_id_redacted"
}
}
]
}
}
},
{
"$project": {
"score": {
"$meta": "searchScore"
},
"desc": 1
}
}
]
I’m expecting 1 result in my test. I have several results. The first one has a search score of 10.557
… The rest of the results (which are many) all have search scores of 0.0
. Why are these being included and how can I filter them out of the results?