[DOCS-2565] Comment on: "manual/tutorial/return-text-queries-using-only-text-index.txt" Created: 21/Jan/14 Updated: 03/Nov/17 Resolved: 22/Jan/14 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Gianfranco Palumbo |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ubuntu 12.04 LTS Location: http://docs.mongodb.org/manual/tutorial/return-text-queries-using-only-text-index/ |
||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Days since reply: | 10 years, 4 weeks ago | ||||||||
| Description |
|
This asc and desc key, what you described, doesn't work for us! The documentation is bad. We tried :
and for text search :
it returns the documents order on disc written (ASC), NOT in - the expected - DESC order by "sku" field. Thanks for reply |
| Comments |
| Comment by Kay Kim (Inactive) [ 22/Jan/14 ] | ||||||||||||
|
Hi Gregory – As for your immediate concern, for a text search, the results are by descending text search score. The index on the keyword: "text", sku: -1 does not, unfortunately, determine the sort order. So, for those objects with the same text search score, the order is non-deterministic.
Hope this helps. Will be closing this ticket as the rewrite for Regards, Kay Kim |