1
/*------------------------------------------------------------------------------
2
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
4
* Distributable under the terms of either the Apache License (Version 2.0) or
5
* the GNU Lesser General Public License, as specified in the COPYING file.
6
------------------------------------------------------------------------------*/
7
#ifndef _lucene_search_spans_SpanScorer_
8
#define _lucene_search_spans_SpanScorer_
10
#include "CLucene/search/Scorer.h"
11
CL_CLASS_DEF2(search,spans,Spans)
12
CL_CLASS_DEF(search,Explanation)
13
CL_CLASS_DEF(search,Weight)
15
CL_NS_DEF2(search, spans)
18
* Public for extension only.
20
class CLUCENE_EXPORT SpanScorer : public CL_NS(search)::Scorer
24
CL_NS(search)::Weight * weight;
36
SpanScorer( Spans * spans, Weight * weight, Similarity * similarity, uint8_t* norms );
37
virtual ~SpanScorer();
40
bool skipTo( int32_t target );
43
CL_NS(search)::Explanation* explain( int32_t docIn );
47
bool setFreqCurrentDoc();
51
#endif // _lucene_search_spans_SpanScorer_