diff options
author | Samantha Ritter <samantha.ritter@10gen.com> | 2014-02-27 16:29:46 -0500 |
---|---|---|
committer | Matt Kangas <matt.kangas@mongodb.com> | 2014-02-28 16:14:50 -0500 |
commit | cd62080dcb036e83f8fca6d68d9bcab67bf7a21c (patch) | |
tree | 9ce907222e4b0e618f30eae65aac7477e3bc2fb9 /src/mongo/db/query/indexability.h | |
parent | d43eb9202ff065364e0eac9a6b601186afd37fa5 (diff) | |
download | mongo-cd62080dcb036e83f8fca6d68d9bcab67bf7a21c.tar.gz |
SERVER-12557 allow exists queries to use an index
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'src/mongo/db/query/indexability.h')
-rw-r--r-- | src/mongo/db/query/indexability.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/query/indexability.h b/src/mongo/db/query/indexability.h index 6f25bda0469..0085e05e5a2 100644 --- a/src/mongo/db/query/indexability.h +++ b/src/mongo/db/query/indexability.h @@ -61,6 +61,7 @@ namespace mongo { || me->matchType() == MatchExpression::TYPE_OPERATOR || me->matchType() == MatchExpression::GEO || me->matchType() == MatchExpression::GEO_NEAR + || me->matchType() == MatchExpression::EXISTS || me->matchType() == MatchExpression::TEXT; } |