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
SpanScorer.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 SPANSCORER_H
8
#define SPANSCORER_H
9
10
#include "
Scorer.h
"
11
12
namespace
Lucene
13
{
15
class
LPPAPI
SpanScorer
:
public
Scorer
16
{
17
public
:
18
SpanScorer
(
SpansPtr
spans,
WeightPtr
weight,
SimilarityPtr
similarity, ByteArray norms);
19
virtual
~
SpanScorer
();
20
21
LUCENE_CLASS
(
SpanScorer
);
22
23
protected
:
24
SpansPtr
spans
;
25
WeightPtr
weight
;
26
ByteArray
norms
;
27
double
value
;
28
bool
more
;
29
int32_t
doc
;
30
double
freq
;
31
32
public
:
33
virtual
int32_t nextDoc();
34
virtual
int32_t advance(int32_t target);
35
virtual
int32_t docID();
36
virtual
double
score();
37
38
protected
:
39
virtual
bool
setFreqCurrentDoc();
40
43
virtual
ExplanationPtr
explain(int32_t doc);
44
45
friend
class
SpanWeight
;
46
friend
class
PayloadNearSpanWeight
;
47
};
48
}
49
50
#endif
clucene.sourceforge.net