Validation of score $meta field is skipped for mongot queries

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      An aggregation query like

      [{$match: {a: 1}}, {$project: {a: {$meta: "textScore"}}]
      

      fails with the error that "query requires text score metadata, but it is not available". That same type of validation occurs for "geoNearDistance" and "geoNearPoint" as well.

       

      However, if you change the pipeline to include a mongot stage like

      [{$search: {/*any $search predicate*/}}, {$project: {a: {$meta: "textScore"}}]  

      that validation is skipped.

              Assignee:
              Will Buerger
              Reporter:
              Will Buerger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: