Class FieldComparerSource
Provides a FieldComparer for custom field sorting.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public abstract class FieldComparerSource
Methods
| Improve this Doc View SourceNewComparer(String, Int32, Int32, Boolean)
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 |
---|---|---|
System.String | fieldname | Name of the field to create comparer for. |
System.Int32 | numHits | |
System.Int32 | sortPos | |
System.Boolean | reversed |
Returns
Type | Description |
---|---|
FieldComparer |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If an error occurs reading the index. |