Hello.
I have documents with the following format:
time : {
"day": 5,
"month": 10,
"year": 2012,
"hour": 22,
}
If I have a compound index on {year:1,month:1,day:1,hour:1}
Can I find objects in a date range?
In other words
I want
2011<=year<=2012
where year is 2011 (but not 2012), I also want
4<=month
where year is 2012 (but not 2011), I also want
month<=7
They can at least get it to sort like this using $sort. I want to return
objects where the index key is between a certain range using the
aggregation framework!
Thank you in advance!
/J