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

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Minor Change
    • 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:
            7 Start watching this issue

              Created:
              Updated: