Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | List of all members
Lucene.Net.Search.Highlight.WeightedSpanTerm Class Reference

Lightweight class to hold term, Weight, and positions used for scoring this term. More...

Inherits Lucene.Net.Search.Highlight.WeightedTerm.

Public Member Functions

 WeightedSpanTerm (float weight, String term)
 
 WeightedSpanTerm (float weight, String term, bool positionSensitive)
 
bool CheckPosition (int position)
 Checks to see if this term is valid at position.
 
void AddPositionSpans (List< PositionSpan > positionSpans)
 
bool IsPositionSensitive ()
 
void SetPositionSensitive (bool positionSensitive)
 
List< PositionSpanGetPositionSpans ()
 
- Public Member Functions inherited from Lucene.Net.Search.Highlight.WeightedTerm
 WeightedTerm (float weight, String term)
 

Additional Inherited Members

- Properties inherited from Lucene.Net.Search.Highlight.WeightedTerm
string Term [get, set]
 the term value (stemmed)
 
float Weight [get, set]
 the Weight associated with this term
 

Detailed Description

Lightweight class to hold term, Weight, and positions used for scoring this term.

Definition at line 28 of file WeightedSpanTerm.cs.

Constructor & Destructor Documentation

Lucene.Net.Search.Highlight.WeightedSpanTerm.WeightedSpanTerm ( float  weight,
String  term 
)

Definition at line 33 of file WeightedSpanTerm.cs.

Lucene.Net.Search.Highlight.WeightedSpanTerm.WeightedSpanTerm ( float  weight,
String  term,
bool  positionSensitive 
)

Definition at line 40 of file WeightedSpanTerm.cs.

Member Function Documentation

void Lucene.Net.Search.Highlight.WeightedSpanTerm.AddPositionSpans ( List< PositionSpan positionSpans)

Definition at line 70 of file WeightedSpanTerm.cs.

bool Lucene.Net.Search.Highlight.WeightedSpanTerm.CheckPosition ( int  position)

Checks to see if this term is valid at position.

Parameters
positionto check against valid term postions
Returns
true iff this term is a hit at this position

Definition at line 52 of file WeightedSpanTerm.cs.

List<PositionSpan> Lucene.Net.Search.Highlight.WeightedSpanTerm.GetPositionSpans ( )

Definition at line 85 of file WeightedSpanTerm.cs.

bool Lucene.Net.Search.Highlight.WeightedSpanTerm.IsPositionSensitive ( )

Definition at line 75 of file WeightedSpanTerm.cs.

void Lucene.Net.Search.Highlight.WeightedSpanTerm.SetPositionSensitive ( bool  positionSensitive)

Definition at line 80 of file WeightedSpanTerm.cs.


The documentation for this class was generated from the following file: