-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: mongodb-2.2
-
Component/s: None
-
Labels:None
Currently it is not possible to use an $OR clause with a geospatial index.
The code in
BSONObjIterator j( e.embeddedObject() ); while( j.more() ) { BSONElement f = j.next(); uassert( 13263, "$or array must contain objects", f.type() == Object ); _orSets.push_back( FieldRangeSetPair( ns, f.embeddedObject(), optimize ) ); uassert( 13291, "$or may not contain 'special' query", _orSets.back().getSpecial().empty() ); _originalOrSets.push_back( _orSets.back() ); } _orFound = true; continue; }
confirms this.
The current document is here.