-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 2.6.0
-
Component/s: Aggregation Framework
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Similar to SERVER-13715, aggregate() fails with an "exception: cursor encountered an error" message when combining $or, $text, and a blocking sort:
> var coll = db.getSiblingDB('newdb').agg;
> coll.drop();
false
> coll.ensureIndex({comments: "text"});
{
"createdCollectionAutomatically" : true,
"numIndexesBefore" : 1,
"numIndexesAfter" : 2,
"ok" : 1
}
> coll.aggregate([{$match: {$or: [{$text: {$search: 'bar'}}, {foo:1}] }}, {$sort: {foo: 1}}]);
assert: command failed: {
"errmsg" : "exception: cursor encountered an error",
"code" : 17285,
"ok" : 0
} : aggregate failed
Version: 2.6.2-rc0
- is related to
-
SERVER-13715 Aggregation pipeline execution can fail with $or and blocking sorts
-
- Closed
-