Class FieldComparerSource
Provides a FieldComparer for custom field sorting.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public abstract class FieldComparerSource
Methods
NewComparer(string, int, int, bool)
Creates a comparer for the field in the given index.
Declaration
public abstract FieldComparer NewComparer(string fieldname, int numHits, int sortPos, bool reversed)
Parameters
Type | Name | Description |
---|---|---|
string | fieldname | Name of the field to create comparer for. |
int | numHits | |
int | sortPos | |
bool | reversed |
Returns
Type | Description |
---|---|
FieldComparer |
Exceptions
Type | Condition |
---|---|
IOException | If an error occurs reading the index. |