diff options
author | Adam Chelminski <adam.chelminski@mongodb.com> | 2015-07-24 18:15:20 -0400 |
---|---|---|
committer | Adam Chelminski <adam.chelminski@mongodb.com> | 2015-08-07 17:12:21 -0400 |
commit | 5c053bde2267fadd42fdf71ceea047cbc1480d6d (patch) | |
tree | 4ed81b79cb60ef34769401c639caf5514f7735dc /src/mongo/db/fts/fts_matcher.cpp | |
parent | 326aa0029a29f06772665750400473db69945234 (diff) | |
download | mongo-5c053bde2267fadd42fdf71ceea047cbc1480d6d.tar.gz |
SERVER-19639 Add Unicode phrase matcher and tokenizer for FTS
Diffstat (limited to 'src/mongo/db/fts/fts_matcher.cpp')
-rw-r--r-- | src/mongo/db/fts/fts_matcher.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/fts/fts_matcher.cpp b/src/mongo/db/fts/fts_matcher.cpp index 52c67e337e9..a4b2a6e4638 100644 --- a/src/mongo/db/fts/fts_matcher.cpp +++ b/src/mongo/db/fts/fts_matcher.cpp @@ -82,8 +82,8 @@ bool FTSMatcher::_hasPositiveTerm_string(const FTSLanguage* language, const stri std::unique_ptr<FTSTokenizer> tokenizer(language->createTokenizer()); tokenizer->reset(raw.c_str(), - _query.getCaseSensitive() ? FTSTokenizer::GenerateCaseSensitiveTokens - : FTSTokenizer::None); + _query.getCaseSensitive() ? FTSTokenizer::kGenerateCaseSensitiveTokens + : FTSTokenizer::kNone); while (tokenizer->moveNext()) { string word = tokenizer->get().toString(); @@ -115,8 +115,8 @@ bool FTSMatcher::_hasNegativeTerm_string(const FTSLanguage* language, const stri std::unique_ptr<FTSTokenizer> tokenizer(language->createTokenizer()); tokenizer->reset(raw.c_str(), - _query.getCaseSensitive() ? FTSTokenizer::GenerateCaseSensitiveTokens - : FTSTokenizer::None); + _query.getCaseSensitive() ? FTSTokenizer::kGenerateCaseSensitiveTokens + : FTSTokenizer::kNone); while (tokenizer->moveNext()) { string word = tokenizer->get().toString(); |