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
Weight.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 WEIGHT_H
8
#define WEIGHT_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene {
13
30
class
LPPAPI
Weight
:
public
LuceneObject
{
31
public
:
32
virtual
~
Weight
();
33
LUCENE_CLASS
(
Weight
);
34
35
public
:
40
virtual
ExplanationPtr
explain(
const
IndexReaderPtr
& reader, int32_t doc) = 0;
41
43
virtual
QueryPtr
getQuery() = 0;
44
46
virtual
double
getValue() = 0;
47
49
virtual
void
normalize(
double
norm) = 0;
50
68
virtual
ScorerPtr
scorer(
const
IndexReaderPtr
& reader,
bool
scoreDocsInOrder,
bool
topScorer) = 0;
69
71
virtual
double
sumOfSquaredWeights() = 0;
72
79
virtual
bool
scoresDocsOutOfOrder();
80
};
81
82
}
83
84
#endif
clucene.sourceforge.net