Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef CUSTOMSCOREPROVIDER_H
8 #define CUSTOMSCOREPROVIDER_H
71 virtual double customScore(int32_t doc,
double subQueryScore,
double valSrcScore);
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual ~CustomScoreProvider()
virtual ExplanationPtr customExplain(int32_t doc, const ExplanationPtr &subQueryExpl, const ExplanationPtr &valSrcExpl)
Explain the custom score. Whenever overriding customScore(int32_t, double, double),...
CustomScoreProvider(const IndexReaderPtr &reader)
Creates a new instance of the provider class for the given IndexReader.
virtual ExplanationPtr customExplain(int32_t doc, const ExplanationPtr &subQueryExpl, Collection< ExplanationPtr > valSrcExpls)
Explain the custom score. Whenever overriding customScore(int32_t, double, Collection<double>),...
virtual double customScore(int32_t doc, double subQueryScore, double valSrcScore)
Compute a custom score by the subQuery score and the ValueSourceQuery score.
Definition: AbstractAllTermDocs.h:12
Base class for all Lucene classes.
Definition: LuceneObject.h:31
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
An instance of this subclass should be returned by CustomScoreQuery#getCustomScoreProvider,...
Definition: CustomScoreProvider.h:21
virtual double customScore(int32_t doc, double subQueryScore, Collection< double > valSrcScores)
Compute a custom score by the subQuery score and a number of ValueSourceQuery scores.
boost::shared_ptr< Explanation > ExplanationPtr
Definition: LuceneTypes.h:333
IndexReaderPtr reader
Definition: CustomScoreProvider.h:28
clucene.sourceforge.net