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