summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_tag.cpp
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-12-11 16:55:46 -0500
committerHari Khalsa <hkhalsa@10gen.com>2013-12-12 09:54:02 -0500
commit143e99cf0c36aaffbdbc74d4a8a2a7f50f119139 (patch)
treeb25924ac86ae6ad960942de1c797a18f4accd859 /src/mongo/db/query/index_tag.cpp
parent172bf6a4e24a65da9a6269507c2385c797d35cb7 (diff)
downloadmongo-143e99cf0c36aaffbdbc74d4a8a2a7f50f119139.tar.gz
SERVER-10026 migrate text cmd to use query exec
Diffstat (limited to 'src/mongo/db/query/index_tag.cpp')
-rw-r--r--src/mongo/db/query/index_tag.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/query/index_tag.cpp b/src/mongo/db/query/index_tag.cpp
index bcab0486b1f..7b81a23f556 100644
--- a/src/mongo/db/query/index_tag.cpp
+++ b/src/mongo/db/query/index_tag.cpp
@@ -79,6 +79,14 @@ namespace mongo {
return false;
}
+ // Ditto text.
+ if (MatchExpression::TEXT == lhs->matchType()) {
+ return true;
+ }
+ else if (MatchExpression::TEXT == rhs->matchType()) {
+ return false;
+ }
+
// Next, order so that the first field of a compound index appears first.
if (lhsPos != rhsPos) {
return lhsPos < rhsPos;