Class TextFragment
Low-level class used to record information about a section of a document with a score.
Inheritance
System.Object
TextFragment
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)
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class TextFragment
Constructors
| Improve this Doc View SourceTextFragment(StringBuilder, Int32, Int32)
Declaration
public TextFragment(StringBuilder markedUpText, int textStartPos, int fragNum)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | markedUpText | |
System.Int32 | textStartPos | |
System.Int32 | fragNum |
Properties
| Improve this Doc View SourceFragNum
the fragment sequence number
Declaration
public virtual int FragNum { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Score
Declaration
public virtual float Score { get; protected set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceFollows(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 |
---|---|
System.Boolean |
Merge(TextFragment)
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 |
---|---|
System.String |
Overrides
System.Object.ToString()