21 namespace Lucene.Net.Search.Highlight
28 private StringBuilder markedUpText;
31 public TextFragment(StringBuilder markedUpText,
int textStartPos,
int fragNum)
33 this.markedUpText = markedUpText;
34 this.TextStartPos = textStartPos;
35 this.FragNum = fragNum;
38 public float Score {
get;
protected internal set; }
39 public int TextEndPos {
get;
protected internal set; }
40 public int TextStartPos {
get;
protected internal set; }
45 public int FragNum {
get;
protected internal set; }
53 Score = Math.Max(Score, frag2.
Score);
67 public override String ToString()
69 return markedUpText.ToString(TextStartPos, TextEndPos - TextStartPos);