diff options
author | Adam Chelminski <adam.chelminski@mongodb.com> | 2015-07-29 15:05:21 -0400 |
---|---|---|
committer | Adam Chelminski <adam.chelminski@mongodb.com> | 2015-08-11 16:56:55 -0400 |
commit | 92eac3b57d8beaf063fced8839cd870f97826bb7 (patch) | |
tree | 0db84953876345d4725576538c14783cb81391e9 /src/mongo/db/matcher/expression_text.h | |
parent | 657343ccff986bd2f8c46fc7455db4238e8801d1 (diff) | |
download | mongo-92eac3b57d8beaf063fced8839cd870f97826bb7.tar.gz |
SERVER-19557 Add text index v3
Diffstat (limited to 'src/mongo/db/matcher/expression_text.h')
-rw-r--r-- | src/mongo/db/matcher/expression_text.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_text.h b/src/mongo/db/matcher/expression_text.h index 3dae52c9ed6..371ad037111 100644 --- a/src/mongo/db/matcher/expression_text.h +++ b/src/mongo/db/matcher/expression_text.h @@ -41,7 +41,10 @@ public: TextMatchExpression() : LeafMatchExpression(TEXT) {} virtual ~TextMatchExpression() {} - Status init(const std::string& query, const std::string& language, bool caseSensitive); + Status init(const std::string& query, + const std::string& language, + bool caseSensitive, + bool diacriticSensitive); virtual bool matchesSingleElement(const BSONElement& e) const; @@ -62,11 +65,15 @@ public: bool getCaseSensitive() const { return _caseSensitive; } + bool getDiacriticSensitive() const { + return _diacriticSensitive; + } private: std::string _query; std::string _language; bool _caseSensitive; + bool _diacriticSensitive; }; } // namespace mongo |