Class WeightedSpanTerm
Lightweight class to hold term, weight, and positions used for scoring this term.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class WeightedSpanTerm : WeightedTerm
Constructors
| Improve this Doc View SourceWeightedSpanTerm(Single, String)
Declaration
public WeightedSpanTerm(float weight, string term)
Parameters
Type | Name | Description |
---|---|---|
System.Single | weight | |
System.String | term |
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 SourceIsPositionSensitive
Declaration
public virtual bool IsPositionSensitive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PositionSpans
Declaration
public virtual IList<PositionSpan> PositionSpans { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<PositionSpan> |
Methods
| Improve this Doc View SourceAddPositionSpans(IList<PositionSpan>)
Declaration
public virtual void AddPositionSpans(IList<PositionSpan> positionSpans)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<PositionSpan> | positionSpans |
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 |