Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
Scorer.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 SCORER_H
8
#define SCORER_H
9
10
#include "
DocIdSetIterator.h
"
11
12
namespace
Lucene
13
{
22
class
LPPAPI
Scorer
:
public
DocIdSetIterator
23
{
24
public
:
27
Scorer
(
SimilarityPtr
similarity);
28
virtual
~
Scorer
();
29
30
LUCENE_CLASS
(
Scorer
);
31
32
protected
:
33
SimilarityPtr
similarity
;
34
35
public
:
37
SimilarityPtr
getSimilarity();
38
41
virtual
void
score(
CollectorPtr
collector);
42
46
virtual
double
score() = 0;
47
48
protected
:
56
virtual
bool
score(
CollectorPtr
collector, int32_t max, int32_t firstDocID);
57
58
friend
class
BooleanScorer
;
59
friend
class
ScoreCachingWrappingScorer
;
60
};
61
}
62
63
#endif
clucene.sourceforge.net