[SERVER-585] min max not working as expected error: { "$err" : "no index found for specified keyPattern: {}" } Created: 29/Jan/10  Updated: 12/Jul/16  Resolved: 26/Feb/10

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

Type: Question Priority: Major - P3
Reporter: Garry Wright Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS X, mongo command line


Participants:

 Description   

I may be missing something but am thinking that the test below points out a bug, but I maybe be missing something

set up collection:-
db.test.save({ "_id" : "IBM.N|00001264779918428889", "DESCRIPTION" :

{ "n" : "IBM STK2", "o" : "IBM STK", "s" : "changed" }

}
db.test.save({ "_id" : "VOD.N|00001264779918433344", "COMPANYNAME" :

{ "n" : "Vodafone Group PLC 2", "o" : "Vodafone Group PLC", "s" : "changed" }

})
db.test.save({ "_id" : "IBM.N|00001264779918437075", "DESCRIPTION" :

{ "n" : "IBM STK3", "o" : "IBM STK2", "s" : "changed" }

})
db.test.save({ "_id" : "VOD.N|00001264779918441426", "COMPANYNAME" :

{ "n" : "Vodafone Group PLC 3", "o" : "Vodafone Group PLC 2", "s" : "changed" }

})

I am expecting that

db.test.find().min(

{"_id":"IBM.N|00000000000000000000"}

).max(

{"_id":"IBM.N|99999999999999999999"}

);

should return
{ "_id" : "IBM.N|00001264779918428889", "DESCRIPTION" :

{ "n" : "IBM STK2", "o" : "IBM STK", "s" : "changed" }

}
{ "_id" : "IBM.N|00001264779918437075", "DESCRIPTION" :

{ "n" : "IBM STK3", "o" : "IBM STK2", "s" : "changed" }

}

and not

error: { "$err" : "no index found for specified keyPattern: {}" }



 Comments   
Comment by Garry Wright [ 26/Feb/10 ]

Its not resolved yet but you can close it. I can re-poen as a bug if it is in fact one

Comment by Eliot Horowitz (Inactive) [ 26/Feb/10 ]

was this resolved on the mailing list?

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