Class FieldPhraseList.WeightedPhraseInfo
Represents the list of term offsets and boost for some text
Inheritance
System.Object
FieldPhraseList.WeightedPhraseInfo
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class WeightedPhraseInfo : IComparable<FieldPhraseList.WeightedPhraseInfo>
Constructors
|
Improve this Doc
View Source
WeightedPhraseInfo(ICollection<FieldPhraseList.WeightedPhraseInfo>)
Merging constructor. Note that this just grabs seqnum from the first info.
Declaration
public WeightedPhraseInfo(ICollection<FieldPhraseList.WeightedPhraseInfo> toMerge)
Parameters
|
Improve this Doc
View Source
WeightedPhraseInfo(IList<FieldTermStack.TermInfo>, Single)
Declaration
public WeightedPhraseInfo(IList<FieldTermStack.TermInfo> terms, float boost)
Parameters
|
Improve this Doc
View Source
WeightedPhraseInfo(IList<FieldTermStack.TermInfo>, Single, Int32)
Declaration
public WeightedPhraseInfo(IList<FieldTermStack.TermInfo> terms, float boost, int seqnum)
Parameters
Properties
|
Improve this Doc
View Source
Boost
Declaration
public virtual float Boost { get; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
EndOffset
Declaration
public virtual int EndOffset { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Seqnum
Declaration
public virtual int Seqnum { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
StartOffset
Declaration
public virtual int StartOffset { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TermsInfos
Declaration
public virtual IList<FieldTermStack.TermInfo> TermsInfos { get; }
Property Value
|
Improve this Doc
View Source
TermsOffsets
Declaration
public virtual IList<FieldPhraseList.WeightedPhraseInfo.Toffs> TermsOffsets { get; }
Property Value
Methods
|
Improve this Doc
View Source
CompareTo(FieldPhraseList.WeightedPhraseInfo)
Declaration
public virtual int CompareTo(FieldPhraseList.WeightedPhraseInfo other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetText()
Text of the match, calculated on the fly. Use for debugging only.
Declaration
public virtual string GetText()
Returns
Type |
Description |
System.String |
the text
|
|
Improve this Doc
View Source
IsOffsetOverlap(FieldPhraseList.WeightedPhraseInfo)
Declaration
public virtual bool IsOffsetOverlap(FieldPhraseList.WeightedPhraseInfo other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|