The following query returns result perfectly.
$author = 'Some Author';
$book_list = $var->MongoDB->DBCache->find(array(
'value.specification.0.info.0.key' => 'author',
'value.specification.0.info.0.value' => $author,
))->sort(array(
'created' => -1,
))->limit(10);
Now if I create index on keys "value.specification.0.info.0.key" , "value.specification.0.info.0.value" the query returns no results.
But we must do index on those keys as we have 3M entries on collections, the query takes forever to execute without index. All the comparison are case sensitive & exact so we don't need regex for now.
Please help us, as this a immediate bottleneck to our application.
--
Thanks
Sougata Pal.
Chief Architect, Techunits
http://in.linkedin.com/in/skallpaulContact:
+91 9051042886