From abc8fd203e7f3e031bc991e27cf36128e9f5792a Mon Sep 17 00:00:00 2001 From: Hari Khalsa Date: Mon, 10 Feb 2014 23:32:24 -0500 Subject: SERVER-12354 SERVER-12144 plan compound text correctly --- src/mongo/db/query/plan_enumerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/query/plan_enumerator.cpp') diff --git a/src/mongo/db/query/plan_enumerator.cpp b/src/mongo/db/query/plan_enumerator.cpp index 5058340abd1..9e8798db014 100644 --- a/src/mongo/db/query/plan_enumerator.cpp +++ b/src/mongo/db/query/plan_enumerator.cpp @@ -327,7 +327,7 @@ namespace mongo { // If the index is multikey, we only assign one pred to it. We also skip // compounding. TODO: is this also true for 2d and 2dsphere indices? can they be // multikey but still compoundable? (How do we get covering for them?) - if (thisIndex.multikey) { + if (thisIndex.multikey && (INDEX_TEXT != thisIndex.type)) { indexAssign.preds.push_back(it->second[0]); indexAssign.positions.push_back(0); } -- cgit v1.2.1