Add options for text command to enable/disable sorting and scoring of results.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Text Search
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It's common for users to want fts search results without incurring the cost of sorting the scored results or even having the score at all (just a match against the index). It would be nice if we added these boolean options to the text command.

      For example, return all documents that match the query but without a score

      db.collection.runCommand("text", {search: "query", score: false}})
      

      or return all documents that match the query with a score field but without sorting them based on that score field

      db.collection.runCommand("text", {search: "query", sort: false}})
      

              Assignee:
              Unassigned
              Reporter:
              Tyler Brock (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: