Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
PositiveScoresOnlyCollector.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 POSITIVESCORESONLYCOLLECTOR_H
8
#define POSITIVESCORESONLYCOLLECTOR_H
9
10
#include "
Collector.h
"
11
12
namespace
Lucene
{
13
16
class
LPPAPI
PositiveScoresOnlyCollector
:
public
Collector
{
17
public
:
18
PositiveScoresOnlyCollector
(
const
CollectorPtr
& c);
19
virtual
~PositiveScoresOnlyCollector
();
20
21
LUCENE_CLASS
(
PositiveScoresOnlyCollector
);
22
23
protected
:
24
CollectorPtr
collector
;
25
ScorerPtr
scorer
;
26
27
public
:
28
virtual
void
collect
(int32_t doc);
29
virtual
void
setNextReader
(
const
IndexReaderPtr
& reader, int32_t docBase);
30
virtual
void
setScorer
(
const
ScorerPtr
&
scorer
);
31
virtual
bool
acceptsDocsOutOfOrder
();
32
};
33
34
}
35
36
#endif
Collector.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::Collector
Collectors are primarily meant to be used to gather raw results from a search, and implement sorting ...
Definition
Collector.h:100
Lucene::PositiveScoresOnlyCollector::scorer
ScorerPtr scorer
Definition
PositiveScoresOnlyCollector.h:25
Lucene::PositiveScoresOnlyCollector::PositiveScoresOnlyCollector
PositiveScoresOnlyCollector(const CollectorPtr &c)
Lucene::PositiveScoresOnlyCollector::collector
CollectorPtr collector
Definition
PositiveScoresOnlyCollector.h:24
Lucene::PositiveScoresOnlyCollector::setScorer
virtual void setScorer(const ScorerPtr &scorer)
Called before successive calls to collect(int32_t). Implementations that need the score of the curren...
Lucene::PositiveScoresOnlyCollector::setNextReader
virtual void setNextReader(const IndexReaderPtr &reader, int32_t docBase)
Called before collecting from each IndexReader. All doc ids in collect(int32_t) will correspond to re...
Lucene::PositiveScoresOnlyCollector::~PositiveScoresOnlyCollector
virtual ~PositiveScoresOnlyCollector()
Lucene::PositiveScoresOnlyCollector::acceptsDocsOutOfOrder
virtual bool acceptsDocsOutOfOrder()
Return true if this collector does not require the matching docIDs to be delivered in int sort order ...
Lucene::PositiveScoresOnlyCollector::collect
virtual void collect(int32_t doc)
Called once for every document matching a query, with the unbased document number.
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::ScorerPtr
boost::shared_ptr< Scorer > ScorerPtr
Definition
LuceneTypes.h:429
Lucene::CollectorPtr
boost::shared_ptr< Collector > CollectorPtr
Definition
LuceneTypes.h:295
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition
LuceneTypes.h:157
clucene.sourceforge.net