public abstract class

FieldComparatorSource

extends Object
implements Serializable
java.lang.Object
   ↳ org.apache.lucene.search.FieldComparatorSource

Class Overview

Provides a FieldComparator for custom field sorting. NOTE: This API is experimental and might change in incompatible ways in the next release.

Summary

Public Constructors
FieldComparatorSource()
Public Methods
abstract FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
Creates a comparator for the field in the given index.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FieldComparatorSource ()

Public Methods

public abstract FieldComparator newComparator (String fieldname, int numHits, int sortPos, boolean reversed)

Creates a comparator for the field in the given index.

Parameters
fieldname Name of the field to create comparator for.
Returns
  • FieldComparator.
Throws
IOException If an error occurs reading the index.