Class WeightedSpanTerm
Lightweight class to hold term, weight, and positions used for scoring this term.
Inheritance
System.Object
WeightedSpanTerm
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class WeightedSpanTerm : WeightedTerm
Constructors
|
Improve this Doc
View Source
WeightedSpanTerm(Single, String)
Declaration
public WeightedSpanTerm(float weight, string term)
Parameters
Type |
Name |
Description |
System.Single |
weight |
|
System.String |
term |
|
|
Improve this Doc
View Source
WeightedSpanTerm(Single, String, Boolean)
Declaration
public WeightedSpanTerm(float weight, string term, bool positionSensitive)
Parameters
Type |
Name |
Description |
System.Single |
weight |
|
System.String |
term |
|
System.Boolean |
positionSensitive |
|
Properties
|
Improve this Doc
View Source
IsPositionSensitive
Declaration
public virtual bool IsPositionSensitive { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
PositionSpans
Declaration
public virtual IList<PositionSpan> PositionSpans { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddPositionSpans(IList<PositionSpan>)
Declaration
public virtual void AddPositionSpans(IList<PositionSpan> positionSpans)
Parameters
|
Improve this Doc
View Source
CheckPosition(Int32)
Checks to see if this term is valid at position
.
Declaration
public virtual bool CheckPosition(int position)
Parameters
Type |
Name |
Description |
System.Int32 |
position |
to check against valid term postions
|
Returns
Type |
Description |
System.Boolean |
true iff this term is a hit at this position
|