diff options
author | Jason Rassi <rassi@10gen.com> | 2013-12-12 19:32:38 -0500 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2013-12-13 14:01:30 -0500 |
commit | 1d034bab093f4f7d3b264c50e78207b94a0e267e (patch) | |
tree | de1ac2a01d91652a5b0882d21ea4307800f91d2f /src/mongo/db/query/parsed_projection.cpp | |
parent | d2c3a1d23dc49b38145748bbb0a1b3839f69a176 (diff) | |
download | mongo-1d034bab093f4f7d3b264c50e78207b94a0e267e.tar.gz |
SERVER-9063 SERVER-10026 Rename document metadata "text" to "textScore"
Diffstat (limited to 'src/mongo/db/query/parsed_projection.cpp')
-rw-r--r-- | src/mongo/db/query/parsed_projection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/parsed_projection.cpp b/src/mongo/db/query/parsed_projection.cpp index b972ca34f9e..02e232343b2 100644 --- a/src/mongo/db/query/parsed_projection.cpp +++ b/src/mongo/db/query/parsed_projection.cpp @@ -138,12 +138,12 @@ namespace mongo { } // Make sure the argument to $meta is something we recognize. - // e.g. {x: {$meta: "text"}} + // e.g. {x: {$meta: "textScore"}} if (String != e2.type()) { return Status(ErrorCodes::BadValue, "unexpected argument to $meta in proj"); } - if (!mongoutils::str::equals(e2.valuestr(), "text") + if (!mongoutils::str::equals(e2.valuestr(), "textScore") && !mongoutils::str::equals(e2.valuestr(), "diskloc") && !mongoutils::str::equals(e2.valuestr(), "indexKey") && !mongoutils::str::equals(e2.valuestr(), "geoNearDistance") |