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

sub-document relevance score for text search

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

      Support subdocuments with various relevance or scores based on the text match weight of those sub-documents.

      Example Schema:

      {
       name: 'Bob Jones, Lord of Waking',
       favorites: [{title:'The Kraken Wakes'}, {title:'Lord of Light'}]
      }
      
      db.users.ensureIndex({name:'text', 'favorites.title':'text'});
      
      db.users.runCommand('text', {search:'lord'});
      

      Results would include a 'score' value of the entire document and a 'score object' that includes the scores in-place for each sub-document.

      Example 'scores' object:

       "score" : 0.75,
       "scores" : {_:.75,favorites:[{_:0}, {_:0.88}]
      

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            wshaver Will Shaver
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: