Class TextFragment
Low-level class used to record information about a section of a document with a score.
Inherited Members
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class TextFragment
Constructors
TextFragment(StringBuilder, int, int)
Low-level class used to record information about a section of a document with a score.
Declaration
public TextFragment(StringBuilder markedUpText, int textStartPos, int fragNum)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | markedUpText | |
int | textStartPos | |
int | fragNum |
Properties
FragNum
the fragment sequence number
Declaration
public virtual int FragNum { get; protected set; }
Property Value
Type | Description |
---|---|
int |
Score
Low-level class used to record information about a section of a document with a score.
Declaration
public virtual float Score { get; protected set; }
Property Value
Type | Description |
---|---|
float |
Methods
Follows(TextFragment)
true if this fragment follows the one passed
Declaration
public virtual bool Follows(TextFragment fragment)
Parameters
Type | Name | Description |
---|---|---|
TextFragment | fragment |
Returns
Type | Description |
---|---|
bool |
Merge(TextFragment)
Low-level class used to record information about a section of a document with a score.
Declaration
public virtual void Merge(TextFragment frag2)
Parameters
Type | Name | Description |
---|---|---|
TextFragment | frag2 | Fragment to be merged into this one |
ToString()
Returns the marked-up text for this text fragment
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |