summaryrefslogtreecommitdiff
path: root/src/mongo/db/fts/fts_matcher.h
diff options
context:
space:
mode:
authorPaul Pedersen <paulpedersen@Pauls-MacBook-Pro.local>2014-01-28 16:19:59 -0500
committerJason Rassi <rassi@10gen.com>2014-01-28 16:20:57 -0500
commit8afbec33f4de266a552f50c608621053523a7a15 (patch)
tree5be437a7bda3379a0d3483edca3230a532e5ddc5 /src/mongo/db/fts/fts_matcher.h
parentf49669ffe3f267bedc258dd17ec1b2d45970ec8a (diff)
downloadmongo-8afbec33f4de266a552f50c608621053523a7a15.tar.gz
SERVER-12081 fts_iterator implementation
Diffstat (limited to 'src/mongo/db/fts/fts_matcher.h')
-rw-r--r--src/mongo/db/fts/fts_matcher.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mongo/db/fts/fts_matcher.h b/src/mongo/db/fts/fts_matcher.h
index e1d9c281947..ed49e536f5d 100644
--- a/src/mongo/db/fts/fts_matcher.h
+++ b/src/mongo/db/fts/fts_matcher.h
@@ -52,7 +52,6 @@ namespace mongo {
* so all full phrases and no negated
*/
bool phrasesMatch( const BSONObj& obj ) const;
-
bool phraseMatch( const string& phrase, const BSONObj& obj ) const;
bool matchesNonTerm( const BSONObj& obj ) const {
@@ -60,19 +59,19 @@ namespace mongo {
}
private:
- bool _hasNegativeTerm_recurse(const BSONObj& obj ) const;
-
/**
* @return true if raw has a negated term
*/
bool _hasNegativeTerm_string( const string& raw ) const;
- bool _phraseRecurse( const string& phrase, const BSONObj& obj ) const;
- bool _phraseMatches( const string& phrase, const string& haystack ) const;
+ /**
+ * @return true if raw has a phrase
+ */
+ bool _phraseMatches( const string& phrase, const string& raw ) const;
FTSQuery _query;
- FTSSpec _spec;
- Stemmer _stemmer;
+ FTSSpec _spec;
+ Stemmer _stemmer;
};
}