CLucene - a full-featured, c++ search engine
API Documentation
00001 /*------------------------------------------------------------------------------ 00002 * Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team 00003 * 00004 * Distributable under the terms of either the Apache License (Version 2.0) or 00005 * the GNU Lesser General Public License, as specified in the COPYING file. 00006 ------------------------------------------------------------------------------*/ 00007 #ifndef _lucene_search_ExactPhraseScorer_ 00008 #define _lucene_search_ExactPhraseScorer_ 00009 00010 #if defined(_LUCENE_PRAGMA_ONCE) 00011 # pragma once 00012 #endif 00013 00014 #include "PhraseScorer.h" 00015 #include "CLucene/index/Terms.h" 00016 00017 CL_NS_DEF(search) 00018 00019 class ExactPhraseScorer: public PhraseScorer { 00020 public: 00021 ExactPhraseScorer(Weight* weight, CL_NS(index)::TermPositions** tps, int32_t* positions, 00022 Similarity* similarity, uint8_t* norms ); 00023 00024 ~ExactPhraseScorer(){ 00025 } 00026 protected: 00027 //Returns the exact freqency of the phrase 00028 float_t phraseFreq(); 00029 }; 00030 CL_NS_END 00031 #endif