Regarding the date range query it is ok.
But i cannot get the OR , AND !
I am trying with AND.
eg :
colls = db.getCollectionNames();
query.put("p", "TestArea");
query.append("p", "TestSquare");
for (String s : colls) {
//System.out.println(s);
DBCollection coll = db.getCollection(s);
DBCursor cur = coll.find(query);
while(cur.hasNext()) {
//System.out.println(cur.next());
//System.out.println(cur);
DBObject obj = cur.next();
System.out.println(obj);
}
}
But this only returns me the results against p:TestSquare , but not
both.
Need some help , I am not getting the syntax through java.
> D-72070 T bingen | Produce &
Publishwww.zopyx.com |
www.produce-and-publish.com