-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Iteration Ferret
-
None
-
None
Only the `search` clause in the `$searchBeta` operator appears to work correctly.
A query like this will work:
{
search: {
path: "title",
query: "The Godfather",
phrase: {}
}
}
However, `search` is only one of many clauses that the $searchBeta operator supports. Others that are not working include `term`, `compound` and `span`. For example, this is a valid query that returns the error `Expected "[" or AggregationStage but "{" found.` in the Compass UI:
{
"compound": {
"should": [{
"term": {
"query": "indaina",
"path": "title",
fuzzy: {maxEdits:2}
}
},
{
"search": {
"query": "jones",
"path": "title"
}
}],
}
}