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
PositiveScoresOnlyCollector.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 POSITIVESCORESONLYCOLLECTOR_H
8 #define POSITIVESCORESONLYCOLLECTOR_H
9
10 #include "Collector.h"
11
12 namespace Lucene
13 {
16 class LPPAPI PositiveScoresOnlyCollector : public Collector
17 {
18 public:
19 PositiveScoresOnlyCollector(CollectorPtr c);
20 virtual ~PositiveScoresOnlyCollector();
21
22 LUCENE_CLASS(PositiveScoresOnlyCollector);
23
24 protected:
25 CollectorPtr collector;
26 ScorerPtr scorer;
27
28 public:
29 virtual void collect(int32_t doc);
30 virtual void setNextReader(IndexReaderPtr reader, int32_t docBase);
31 virtual void setScorer(ScorerPtr scorer);
32 virtual bool acceptsDocsOutOfOrder();
33 };
34 }
35
36 #endif

clucene.sourceforge.net