[COMPASS-3681] Not all $searchBeta operator clauses supported in Compass Dev build Created: 10/Jun/19  Updated: 12/Jun/19  Resolved: 12/Jun/19

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.19.0

Type: Bug Priority: Major - P3
Reporter: Timothy Frietas (Inactive) Assignee: Durran Jordan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: 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"
          }
        }],
      }
    }


Generated at Wed Feb 07 22:33:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.