Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
Iteration Ferret
Description
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" |
}
|
}],
|
}
|
}
|