Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-93521

Enforce that "searchScore" and "vectorSearchScore" cannot be used when undefined.

    • Query Integration
    • ALL

      While working on SERVER-91278, I am finding that these pipelines do not return an error, but I think they should, since "searchScore" is not defined:
      coll.aggregate([\{$set: {score: {$meta: "searchScore"}}}]); coll.aggregate([\{$sort: {score: {$meta: "searchScore"}}}]);

      coll.aggregate([\{$set: {score: {$meta: "vectorSearchScore"}}}]); coll.aggregate([\{$sort: {score: {$meta: "vectorSearchScore"}}}]);
       
      This task/work is related to SERVER-69872, but I think it's different/supporting.

            Assignee:
            Unassigned Unassigned
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: