使用 Multikeys 模拟大数量的索引
> x = {... _id : "abc",
... cost : 33,
... attribs : [
... { color : 'red' },... { shape : 'rect' },... { color : 'blue' },... { avail : true } ]... };
> db.foo.insert(x);
> db.foo.ensureIndex({attribs:1});> db.foo.find( { attribs : {color:'blue'} } ); // 使用索引> db.foo.find( { attribs : {avail:false} } ); // 使用索引?