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

Loading...
Searching...
No Matches
FieldComparatorSource.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 FIELDCOMPARATORSOURCE_H
8#define FIELDCOMPARATORSOURCE_H
9
10#include "LuceneObject.h"
11
12 namespace Lucene {
13
15 class LPPAPI FieldComparatorSource : public LuceneObject {
16 public:
17 virtual ~FieldComparatorSource();
18 LUCENE_CLASS(FieldComparatorSource);
19
20 public:
24 virtual FieldComparatorPtr newComparator(const String& fieldname, int32_t numHits, int32_t sortPos, bool reversed) = 0;
25};
26
27}
28
29#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::FieldComparatorSource
Provides a FieldComparator for custom field sorting.
Definition FieldComparatorSource.h:15
Lucene::FieldComparatorSource::~FieldComparatorSource
virtual ~FieldComparatorSource()
Lucene::FieldComparatorSource::newComparator
virtual FieldComparatorPtr newComparator(const String &fieldname, int32_t numHits, int32_t sortPos, bool reversed)=0
Creates a comparator for the field in the given index.
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::FieldComparatorPtr
boost::shared_ptr< FieldComparator > FieldComparatorPtr
Definition LuceneTypes.h:348

clucene.sourceforge.net