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


ReqExclScorer.h
Go to the documentation of this file.
1 // 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:
22  virtual ~ReqExclScorer();
23 
25 
26 protected:
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
Scorer.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::ReqExclScorer::doc
int32_t doc
Definition: ReqExclScorer.h:29
Lucene::ReqExclScorer::exclDisi
DocIdSetIteratorPtr exclDisi
Definition: ReqExclScorer.h:28
Lucene::ReqExclScorer::~ReqExclScorer
virtual ~ReqExclScorer()
Lucene::ReqExclScorer::ReqExclScorer
ReqExclScorer(const ScorerPtr &reqScorer, const DocIdSetIteratorPtr &exclDisi)
Construct a ReqExclScorer.
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::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::score
virtual double score()
Returns the score of the current document matching the query. Initially invalid, until next() is call...
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::ReqExclScorer::docID
virtual int32_t docID()
Returns the following:
Lucene::ReqExclScorer::toNonExcluded
int32_t toNonExcluded()
Advance to non excluded doc.
Lucene::Scorer
Common scoring functionality for different types of queries.
Definition: Scorer.h:33
Lucene::DocIdSetIteratorPtr
boost::shared_ptr< DocIdSetIterator > DocIdSetIteratorPtr
Definition: LuceneTypes.h:324
Lucene::ReqExclScorer
A Scorer for queries with a required subscorer and an excluding (prohibited) sub DocIdSetIterator....
Definition: ReqExclScorer.h:16
Lucene::ScorerPtr
boost::shared_ptr< Scorer > ScorerPtr
Definition: LuceneTypes.h:429
Lucene::ReqExclScorer::reqScorer
ScorerPtr reqScorer
Definition: ReqExclScorer.h:24

clucene.sourceforge.net