About 2 years ago (time is flying) I explained how I did the same to support range queries over "n" attributes, the method ended up being in the book "MongoDB, the Definitive Guide" by Chodorow and Dirolf (O'Reilly):
What should be added to this is the ability to tell Mongo to return an error if your query requires a table scan. That one configuration item can be the difference between a request returning an error and a whole site going down for an extended period.
Loic|13 years ago
http://chemeo.com/doc/technology
(Search for "Indexing For High Speed Search" to skip non MongoDB related information).
dkhenry|13 years ago
pbrumm|13 years ago
lucian1900|13 years ago
MartinMond|13 years ago
jiryu|13 years ago
mattparlane|13 years ago
https://jira.mongodb.org/browse/SERVER-3071
It's index intersection, and it's scheduled for 2.3.1 which is the next next dev release. I'm hoping it makes it in for 2.4.