[SERVER-1010] query suggest() Created: 13/Apr/10  Updated: 10/Dec/14  Resolved: 15/Jan/14

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

Type: New Feature Priority: Minor - P4
Reporter: Aaron Staple Assignee: Unassigned
Resolution: Won't Fix Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

So I think for a real basic implementation we could do this:

  • add all exact matches in query to beginning of the "best" index
  • if we have a sort, then add the sort fields, we're done
  • if no sort, add $in fields
  • then we're left with ranges - do a table scan to see which range would result in the fewest nscanned, given constraints already present earlier in the index. We could yield during the scan - data consistency doesn't matter for this

Wouldn't handle various things like compound key ranges, but I think this would be a decent starting point for helping people out.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 15/Jan/14 ]

new planner supersedes this i believe

Generated at Thu Feb 08 02:55:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.