Class FieldPhraseList.WeightedPhraseInfo
Represents the list of term offsets and boost for some text
Inheritance
System.Object
FieldPhraseList.WeightedPhraseInfo
Implements
System.IComparable<FieldPhraseList.WeightedPhraseInfo>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Search.VectorHighlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class WeightedPhraseInfo : IComparable<FieldPhraseList.WeightedPhraseInfo>
Constructors
| Improve this Doc View SourceWeightedPhraseInfo(ICollection<FieldPhraseList.WeightedPhraseInfo>)
Merging constructor. Note that this just grabs seqnum from the first info.
Declaration
public WeightedPhraseInfo(ICollection<FieldPhraseList.WeightedPhraseInfo> toMerge)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<FieldPhraseList.WeightedPhraseInfo> | toMerge |
WeightedPhraseInfo(IList<FieldTermStack.TermInfo>, Single)
Declaration
public WeightedPhraseInfo(IList<FieldTermStack.TermInfo> terms, float boost)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<FieldTermStack.TermInfo> | terms | |
System.Single | boost |
WeightedPhraseInfo(IList<FieldTermStack.TermInfo>, Single, Int32)
Declaration
public WeightedPhraseInfo(IList<FieldTermStack.TermInfo> terms, float boost, int seqnum)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<FieldTermStack.TermInfo> | terms | |
System.Single | boost | |
System.Int32 | seqnum |
Properties
| Improve this Doc View SourceBoost
the boost
Declaration
public virtual float Boost { get; }
Property Value
Type | Description |
---|---|
System.Single |
EndOffset
Declaration
public virtual int EndOffset { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Seqnum
the seqnum
Declaration
public virtual int Seqnum { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
StartOffset
Declaration
public virtual int StartOffset { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
TermsInfos
the termInfos
Declaration
public virtual IList<FieldTermStack.TermInfo> TermsInfos { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<FieldTermStack.TermInfo> |
TermsOffsets
the termsOffsets
Declaration
public virtual IList<FieldPhraseList.WeightedPhraseInfo.Toffs> TermsOffsets { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<FieldPhraseList.WeightedPhraseInfo.Toffs> |
Methods
| Improve this Doc View SourceCompareTo(FieldPhraseList.WeightedPhraseInfo)
Declaration
public virtual int CompareTo(FieldPhraseList.WeightedPhraseInfo other)
Parameters
Type | Name | Description |
---|---|---|
FieldPhraseList.WeightedPhraseInfo | other |
Returns
Type | Description |
---|---|
System.Int32 |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
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 |
IsOffsetOverlap(FieldPhraseList.WeightedPhraseInfo)
Declaration
public virtual bool IsOffsetOverlap(FieldPhraseList.WeightedPhraseInfo other)
Parameters
Type | Name | Description |
---|---|---|
FieldPhraseList.WeightedPhraseInfo | other |
Returns
Type | Description |
---|---|
System.Boolean |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.IComparable<T>