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
CustomScoreProvider.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 CUSTOMSCOREPROVIDER_H
8
#define CUSTOMSCOREPROVIDER_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
13
{
21
class
LPPAPI
CustomScoreProvider
:
public
LuceneObject
22
{
23
public
:
25
CustomScoreProvider
(
IndexReaderPtr
reader);
26
27
virtual
~
CustomScoreProvider
();
28
29
LUCENE_CLASS
(
CustomScoreProvider
);
30
31
protected
:
32
IndexReaderPtr
reader;
33
34
public
:
53
virtual
double
customScore(int32_t doc,
double
subQueryScore,
Collection<double>
valSrcScores);
54
72
virtual
double
customScore(int32_t doc,
double
subQueryScore,
double
valSrcScore);
73
81
virtual
ExplanationPtr
customExplain(int32_t doc,
ExplanationPtr
subQueryExpl,
Collection<ExplanationPtr>
valSrcExpls);
82
89
virtual
ExplanationPtr
customExplain(int32_t doc,
ExplanationPtr
subQueryExpl,
ExplanationPtr
valSrcExpl);
90
};
91
}
92
93
#endif
clucene.sourceforge.net