Details
-
Improvement
-
Resolution: Duplicate
-
Major - P3
-
None
-
ubuntu 12.04 LTS
mongod v2.4.9, mongo v2.4.9
-------------------------------------------
port = 27018
dbpath = /var/lib/mongo.rs0/
fork = true
replSet = rs0
logpath = /var/log/mongodb.log
logappend = yes
shardsvr = true
setParameter=textSearchEnabled=1
*Location*: http://docs.mongodb.org/manual/tutorial/return-text-queries-using-only-text-index/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36
*Screen Resolution*: 1440 x 900
*repo*: docs
*source*: tutorial/return-text-queries-using-only-text-index
ubuntu 12.04 LTS mongod v2.4.9, mongo v2.4.9 ------------------------------------------- port = 27018 dbpath = /var/lib/mongo.rs0/ fork = true replSet = rs0 logpath = /var/log/mongodb.log logappend = yes shardsvr = true setParameter=textSearchEnabled=1 *Location*: http://docs.mongodb.org/manual/tutorial/return-text-queries-using-only-text-index/ *User-Agent*: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36 *Screen Resolution*: 1440 x 900 *repo*: docs *source*: tutorial/return-text-queries-using-only-text-index
Description
This asc and desc key, what you described, doesn't work for us! The documentation is bad.
We tried :
db.product.ensureIndex({
|
keyword : "text", // string ~100 characters separated by space |
sku : -1, //integer32 |
})
|
and for text search :
db.product.runCommand("text",{ |
search: "chindren toys", |
project : {sku : 1, _id : 0}
|
})
|
it returns the documents order on disc written (ASC), NOT in - the expected - DESC order by "sku" field.
Thanks for reply
Attachments
Issue Links
- duplicates
-
DOCS-2208 Text search covering behavior incorrectly documented
-
- Closed
-