virtual void addWeightingFeature(const std::string &name_, PostingIteratorInterface *postingIterator_, double weight_, const TermStatistics &stats_)=0
Add a feature that is subject of weighting to the execution context.
Interface for a weighting function with its state and context used during calculation.
Definition: weightingFunctionContextInterface.hpp:24
Structure that represents a set of feature occurrencies (postings) as iterator.
Definition: postingIteratorInterface.hpp:20
virtual void setVariableValue(const std::string &name, double value)=0
Set the value of a query variable.
virtual double call(const Index &docno)=0
Call the weighting function for a document.
virtual ~WeightingFunctionContextInterface()
Destructor.
Definition: weightingFunctionContextInterface.hpp:28
virtual std::string debugCall(const Index &docno)=0
Get debug info dumped as string of the weighting call for one document.