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

score and scoreDetails cannot be used when not defined

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      For new metadata fields added in this project (I think just "score" and "scoreDetails"), we should fail the query if we try to reference the metadata field when it's not defined. For example, the pipeline  {$project: {$meta: "score"}} should fail since "score" is not populated.

      We should also think about how this interacts with "searchScore" and "searchScoreDetails".

      It's unclear how challenging this will be to pull off, but we should at least investigate it.

            Assignee:
            will.buerger@mongodb.com Will Buerger
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: