summaryrefslogtreecommitdiff
path: root/src/mongo/db/fts/fts_spec.cpp
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2013-03-12 10:47:08 -0400
committerJason Rassi <rassi@10gen.com>2013-03-12 10:47:33 -0400
commit2bc9d4ee47db6b39a7509e080b5b457563272db5 (patch)
tree90068cd9dea04148899df5712fcc41153d7f13c4 /src/mongo/db/fts/fts_spec.cpp
parent7e37b626030be45057f1d3abbeac890d3249f3b0 (diff)
downloadmongo-2bc9d4ee47db6b39a7509e080b5b457563272db5.tar.gz
SERVER-8921 Change error condition for invalid text index spec
Diffstat (limited to 'src/mongo/db/fts/fts_spec.cpp')
-rw-r--r--src/mongo/db/fts/fts_spec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/fts/fts_spec.cpp b/src/mongo/db/fts/fts_spec.cpp
index 009aad2f70e..238065983cb 100644
--- a/src/mongo/db/fts/fts_spec.cpp
+++ b/src/mongo/db/fts/fts_spec.cpp
@@ -33,7 +33,7 @@ namespace mongo {
FTSSpec::FTSSpec( const BSONObj& indexInfo ) {
massert( 16739, "found invalid spec for text index",
- indexInfo.hasField("weights") );
+ indexInfo["weights"].isABSONObj() );
_defaultLanguage = indexInfo["default_language"].valuestrsafe();
_languageOverrideField = indexInfo["language_override"].valuestrsafe();