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
2
// Copyright (c) 2009-2014 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
public
:
26
Scorer
(
const
SimilarityPtr
& similarity);
27
virtual
~
Scorer
();
28
29
LUCENE_CLASS
(
Scorer
);
30
31
protected
:
32
SimilarityPtr
similarity
;
33
34
public
:
36
SimilarityPtr
getSimilarity();
37
40
virtual
void
score(
const
CollectorPtr
& collector);
41
45
virtual
double
score() = 0;
46
47
protected
:
55
virtual
bool
score(
const
CollectorPtr
& collector, int32_t max, int32_t firstDocID);
56
57
friend
class
BooleanScorer
;
58
friend
class
ScoreCachingWrappingScorer
;
59
};
60
61
}
62
63
#endif
clucene.sourceforge.net