[DOCS-902] Improve documentation regarding $or operator Created: 18/Dec/12  Updated: 18/Dec/12  Resolved: 18/Dec/12

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: mongodb-2.2
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Mark porter Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:
Days since reply: 11 years, 9 weeks, 1 day ago

 Description   

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.



 Comments   
Comment by auto [ 18/Dec/12 ]

Author:

{u'date': u'2012-12-18T14:50:06Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-902 adding notes about $or operator and 2d geo queries
Branch: master
https://github.com/mongodb/docs/commit/9be66275a4891c0d7c2a12f5936d867e12ec31ce

Generated at Thu Feb 08 07:39:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.