Method GetComparer
GetComparer(Int32, Int32)
Returns the FieldComparer to use for sorting.
@lucene.experimental
Declaration
public virtual FieldComparer GetComparer(int numHits, int sortPos)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numHits | Number of top hits the queue will store |
System.Int32 | sortPos | Position of this SortField within Sort. The comparer is primary if sortPos==0, secondary if sortPos==1, etc. Some comparers can optimize themselves when they are the primary sort. |
Returns
Type | Description |
---|---|
FieldComparer | FieldComparer to use when sorting |