Lucene++ - a full-featured, c++ search engine
API Documentation

Loading...
Searching...
No Matches
ReqExclScorer.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 REQEXCLSCORER_H
8#define REQEXCLSCORER_H
9
10#include "Scorer.h"
11
12 namespace Lucene {
13
16 class ReqExclScorer : public Scorer {
17 public:
21 ReqExclScorer(const ScorerPtr& reqScorer, const DocIdSetIteratorPtr& exclDisi);
22 virtual ~ReqExclScorer();
23
24 LUCENE_CLASS(ReqExclScorer);
25
26 protected:
27 ScorerPtr reqScorer;
28 DocIdSetIteratorPtr exclDisi;
29 int32_t doc;
30
31 public:
32 virtual int32_t nextDoc();
33 virtual int32_t docID();
34
38 virtual double score();
39
40 virtual int32_t advance(int32_t target);
41
42 protected:
53 int32_t toNonExcluded();
54};
55
56}
57
58#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Scorer.h
Lucene::ReqExclScorer::~ReqExclScorer
virtual ~ReqExclScorer()
Lucene::ReqExclScorer::score
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until next() is call...
Lucene::ReqExclScorer::nextDoc
virtual int32_t nextDoc()
Advances to the next document in the set and returns the doc it is currently on, or NO_MORE_DOCS if t...
Lucene::ReqExclScorer::ReqExclScorer
ReqExclScorer(const ScorerPtr &reqScorer, const DocIdSetIteratorPtr &exclDisi)
Construct a ReqExclScorer.
Lucene::ReqExclScorer::advance
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
Lucene::ReqExclScorer::docID
virtual int32_t docID()
Returns the following:
Lucene::ReqExclScorer::reqScorer
ScorerPtr reqScorer
Definition ReqExclScorer.h:27
Lucene::ReqExclScorer::doc
int32_t doc
Definition ReqExclScorer.h:29
Lucene::ReqExclScorer::exclDisi
DocIdSetIteratorPtr exclDisi
Definition ReqExclScorer.h:28
Lucene::ReqExclScorer::toNonExcluded
int32_t toNonExcluded()
Advance to non excluded doc.
Lucene::Scorer::Scorer
Scorer(const SimilarityPtr &similarity)
Constructs a Scorer.
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::ScorerPtr
boost::shared_ptr< Scorer > ScorerPtr
Definition LuceneTypes.h:429
Lucene::DocIdSetIteratorPtr
boost::shared_ptr< DocIdSetIterator > DocIdSetIteratorPtr
Definition LuceneTypes.h:324

clucene.sourceforge.net