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


ParallelMultiSearcher.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 PARALLELMULTISEARCHER_H
8 #define PARALLELMULTISEARCHER_H
9 
10 #include "MultiSearcher.h"
11 
12 namespace Lucene {
13 
18 class LPPAPI ParallelMultiSearcher : public MultiSearcher {
19 public:
23 
25 
26 public:
29  virtual int32_t docFreq(const TermPtr& term);
30 
33  virtual TopDocsPtr search(const WeightPtr& weight, const FilterPtr& filter, int32_t n);
34 
37  virtual TopFieldDocsPtr search(const WeightPtr& weight, const FilterPtr& filter, int32_t n, const SortPtr& sort);
38 };
39 
40 }
41 
42 #endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Implements search over a set of Searchables.
Definition: MultiSearcher.h:19
Implements parallel search over a set of Searchables.
Definition: ParallelMultiSearcher.h:18
virtual TopDocsPtr search(const WeightPtr &weight, const FilterPtr &filter, int32_t n)
A search implementation which executes each Searchable in its own thread and waits for each search to...
virtual int32_t docFreq(const TermPtr &term)
Executes each Searchable's docFreq() in its own thread and waits for each search to complete and merg...
ParallelMultiSearcher(Collection< SearchablePtr > searchables)
Creates a Searchable which searches searchables.
virtual TopFieldDocsPtr search(const WeightPtr &weight, const FilterPtr &filter, int32_t n, const SortPtr &sort)
A search implementation allowing sorting which spans a new thread for each Searchable,...
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< TopDocs > TopDocsPtr
Definition: LuceneTypes.h:471
boost::shared_ptr< Term > TermPtr
Definition: LuceneTypes.h:233
boost::shared_ptr< Sort > SortPtr
Definition: LuceneTypes.h:442
boost::shared_ptr< TopFieldDocs > TopFieldDocsPtr
Definition: LuceneTypes.h:474
boost::shared_ptr< Filter > FilterPtr
Definition: LuceneTypes.h:358
boost::shared_ptr< Weight > WeightPtr
Definition: LuceneTypes.h:480

clucene.sourceforge.net