diff options
author | Jason Rassi <rassi@10gen.com> | 2013-11-13 03:46:19 -0500 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2013-11-13 03:46:19 -0500 |
commit | 075ff3c615cc9c53aab272af32a180d9f1ceda4a (patch) | |
tree | a392a303536389756834a3909f88516155ac013f /src/mongo/db/fts/stemmer.h | |
parent | ef9a27f0feaa44ad4f897e49a52c9b755cf3d496 (diff) | |
download | mongo-075ff3c615cc9c53aab272af32a180d9f1ceda4a.tar.gz |
SERVER-9932 SERVER-10857 Text search language aliases/validation
Users can now use two-letter language codes and can specify
languages in mixed case.
The following operations will now fail if they do not pass language
validation:
- Building a text index (if default_language fails validation or if
the target collection contains a document with a language that
fails validation).
- Inserting a document into a text-indexed collection (if it
specifies a language that fails validation).
- A text query or text command (if it specifies a language that
fails validation).
Diffstat (limited to 'src/mongo/db/fts/stemmer.h')
-rw-r--r-- | src/mongo/db/fts/stemmer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/fts/stemmer.h b/src/mongo/db/fts/stemmer.h index 521f41490fa..9b06bda4f2e 100644 --- a/src/mongo/db/fts/stemmer.h +++ b/src/mongo/db/fts/stemmer.h @@ -34,6 +34,7 @@ #include <string> #include "mongo/base/string_data.h" +#include "mongo/db/fts/fts_language.h" #include "third_party/libstemmer_c/include/libstemmer.h" namespace mongo { @@ -47,7 +48,7 @@ namespace mongo { */ class Stemmer { public: - Stemmer( const std::string& language ); + Stemmer( const FTSLanguage language ); ~Stemmer(); std::string stem( const StringData& word ) const; |