summaryrefslogtreecommitdiff
path: root/src/mongo/db/fts/fts_language.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/fts/fts_language.cpp')
-rw-r--r--src/mongo/db/fts/fts_language.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/fts/fts_language.cpp b/src/mongo/db/fts/fts_language.cpp
index 7d1fdd160de..ad88ccc18d4 100644
--- a/src/mongo/db/fts/fts_language.cpp
+++ b/src/mongo/db/fts/fts_language.cpp
@@ -82,7 +82,7 @@ LanguageMap languageMapV2;
// Case-sensitive by lookup key.
typedef std::map<StringData, const FTSLanguage*> LanguageMapLegacy;
LanguageMapLegacy languageMapV1;
-}
+} // namespace
MONGO_INITIALIZER_GROUP(FTSAllLanguagesRegistered, MONGO_NO_PREREQUISITES, MONGO_NO_DEPENDENTS);
@@ -277,10 +277,10 @@ StatusWithFTSLanguage FTSLanguage::make(StringData langName, TextIndexVersion te
if (it == languageMap->end()) {
// TEXT_INDEX_VERSION_2 and above reject unrecognized language strings.
- Status status = Status(ErrorCodes::BadValue,
- str::stream() << "unsupported language: \"" << langName
- << "\" for text index version "
- << textIndexVersion);
+ Status status =
+ Status(ErrorCodes::BadValue,
+ str::stream() << "unsupported language: \"" << langName
+ << "\" for text index version " << textIndexVersion);
return StatusWithFTSLanguage(status);
}
@@ -312,5 +312,5 @@ std::unique_ptr<FTSTokenizer> UnicodeFTSLanguage::createTokenizer() const {
const FTSPhraseMatcher& UnicodeFTSLanguage::getPhraseMatcher() const {
return _unicodePhraseMatcher;
}
-}
-}
+} // namespace fts
+} // namespace mongo