Class ScoreOrderFragmentsBuilder.ScoreComparer
IComparer<T> for FieldFragList.WeightedFragInfo by boost, breaking ties by offset.
Implements
Inherited Members
Namespace: Lucene.Net.Search.VectorHighlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
[Serializable]
public class ScoreOrderFragmentsBuilder.ScoreComparer : IComparer<FieldFragList.WeightedFragInfo>
Properties
Default
Returns a default score comparer.
Declaration
public static IComparer<FieldFragList.WeightedFragInfo> Default { get; }
Property Value
Type | Description |
---|---|
IComparer<FieldFragList.WeightedFragInfo> |
Methods
Compare(WeightedFragInfo, WeightedFragInfo)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
public virtual int Compare(FieldFragList.WeightedFragInfo o1, FieldFragList.WeightedFragInfo o2)
Parameters
Type | Name | Description |
---|---|---|
FieldFragList.WeightedFragInfo | o1 | |
FieldFragList.WeightedFragInfo | o2 |
Returns
Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
int | A signed integer that indicates the relative values of
|