[SERVER-9772] Add options for text command to enable/disable sorting and scoring of results. Created: 23/May/13  Updated: 10/Dec/14  Resolved: 24/May/13

Status: Closed
Project: Core Server
Component/s: Text Search
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Tyler Brock Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-9063 Integrate text search into normal que... Closed
Participants:

 Description   

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}})



 Comments   
Comment by Tyler Brock [ 24/May/13 ]

Right, I just thought this may be easier if SERVER-9063 is not on the immediate horizon. The plan we have sounds good though so I'll just wait. Thanks guys!

Comment by Eliot Horowitz (Inactive) [ 24/May/13 ]

This would be done via SERVER-9063

Comment by J Rassi [ 23/May/13 ]

Note that this use case will be satisfied by implementing SERVER-9063.

Generated at Thu Feb 08 03:21:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.