Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SloppyPhraseScorer.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef SLOPPYPHRASESCORER_H
8 #define SLOPPYPHRASESCORER_H
9 
10 #include "PhraseScorer.h"
11 
12 namespace Lucene
13 {
15  {
16  public:
18  virtual ~SloppyPhraseScorer();
19 
21 
22  protected:
23  int32_t slop;
25  Collection<PhrasePositionsPtr> tmpPos; // for flipping repeating pps
27 
28  public:
41  virtual double phraseFreq();
42 
43  protected:
47 
59  int32_t initPhrasePositions();
60 
66  };
67 }
68 
69 #endif

clucene.sourceforge.net