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_SloppyPhraseScorer_ 00008 #define _lucene_search_SloppyPhraseScorer_ 00009 #if defined(_LUCENE_PRAGMA_ONCE) 00010 # pragma once 00011 #endif 00012 00013 #include "PhraseScorer.h" 00014 #include "CLucene/index/Terms.h" 00015 00016 00017 CL_NS_DEF(search) 00018 class SloppyPhraseScorer: public PhraseScorer { 00019 private: 00020 int32_t slop; 00021 00022 public: 00023 SloppyPhraseScorer(Weight* weight, CL_NS(index)::TermPositions** tps, 00024 int32_t* positions, Similarity* similarity, 00025 int32_t slop, uint8_t* norms); 00026 ~SloppyPhraseScorer(){ 00027 } 00028 00029 protected: 00030 float_t phraseFreq(); 00031 }; 00032 CL_NS_END 00033 #endif 00034