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


Loading...
Searching...
No Matches
Data Structures | Namespaces
FieldComparator.h File Reference
#include "LuceneObject.h"

Go to the source code of this file.

Data Structures

class  Lucene::FieldComparator
 A FieldComparator compares hits so as to determine their sort order when collecting the top results with TopFieldCollector. The concrete public FieldComparator classes here correspond to the SortField types. More...
 
class  Lucene::NumericComparator< TYPE >
 
class  Lucene::ByteComparator
 Parses field's values as byte (using FieldCache#getBytes and sorts by ascending value. More...
 
class  Lucene::DocComparator
 Sorts by ascending docID. More...
 
class  Lucene::DoubleComparator
 Parses field's values as double (using FieldCache#getDoubles and sorts by ascending value. More...
 
class  Lucene::IntComparator
 Parses field's values as int (using FieldCache#getInts and sorts by ascending value. More...
 
class  Lucene::LongComparator
 Parses field's values as long (using FieldCache#getLongs and sorts by ascending value. More...
 
class  Lucene::RelevanceComparator
 Sorts by descending relevance. NOTE: if you are sorting only by descending relevance and then secondarily by ascending docID, performance is faster using TopScoreDocCollector directly (which IndexSearcher#search uses when no Sort is specified). More...
 
class  Lucene::StringComparatorLocale
 Sorts by a field's value using the Collator for a given Locale. More...
 
class  Lucene::StringOrdValComparator
 Sorts by field's natural String sort order, using ordinals. This is functionally equivalent to StringValComparator, but it first resolves the string to their relative ordinal positions (using the index returned by FieldCache#getStringIndex), and does most comparisons using the ordinals. For medium to large results, this comparator will be much faster than StringValComparator. For very small result sets it may be slower. More...
 
class  Lucene::StringValComparator
 Sorts by field's natural String sort order. All comparisons are done using String.compare, which is slow for medium to large result sets but possibly very fast for very small results sets. More...
 

Namespaces

namespace  Lucene
 

clucene.sourceforge.net