From 92eac3b57d8beaf063fced8839cd870f97826bb7 Mon Sep 17 00:00:00 2001 From: Adam Chelminski Date: Wed, 29 Jul 2015 15:05:21 -0400 Subject: SERVER-19557 Add text index v3 --- src/mongo/db/matcher/expression_text.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/matcher/expression_text.h') 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 -- cgit v1.2.1