Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-902

Improve documentation regarding $or operator

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 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.

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            mark Mark porter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 19 weeks, 3 days ago