diff options
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r-- | src/mongo/db/fts/fts_util.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/mongo/db/fts/fts_util.h b/src/mongo/db/fts/fts_util.h index fe9ad0de341..5a749b27f53 100644 --- a/src/mongo/db/fts/fts_util.h +++ b/src/mongo/db/fts/fts_util.h @@ -34,7 +34,6 @@ #include "mongo/db/hasher.h" #include "mongo/db/jsobj.h" -#include "mongo/db/storage/record.h" #include "mongo/util/unordered_fast_key_table.h" namespace mongo { @@ -59,35 +58,6 @@ namespace mongo { (*s)[i] = (char)tolower( (int)(*s)[i] ); } - /* - * ScoredLocation stores the total score for a document (record *) wrt a search - * - */ - struct ScoredLocation { - ScoredLocation( Record* r, double sc ) - : rec(r), score(sc) { - } - - Record* rec; - double score; - - bool operator<( const ScoredLocation& other ) const { - if ( other.score < score ) - return true; - if ( other.score > score ) - return false; - return rec < other.rec; - } - }; - - // scored location comparison is done based on score - class ScoredLocationComp { - public: - bool operator() (const ScoredLocation& lhs, const ScoredLocation& rhs) const { - return (lhs.score > rhs.score); - } - }; - struct _be_hash { size_t operator()( const BSONElement& e ) const { return static_cast<size_t>( BSONElementHasher::hash64( e, 17 ) ); |