19 using Lucene.Net.Analysis;
20 using Lucene.Net.Analysis.Tokenattributes;
22 namespace Lucene.Net.Search.Highlight
32 private static int DEFAULT_FRAGMENT_SIZE = 100;
33 private int currentNumFrags;
34 private int fragmentSize;
38 : this(DEFAULT_FRAGMENT_SIZE)
49 this.fragmentSize = fragmentSize;
68 public bool IsNewFragment()
70 bool isNewFrag = offsetAtt.
EndOffset >= (fragmentSize*currentNumFrags);
81 public int FragmentSize
83 get {
return fragmentSize; }
84 set { fragmentSize = value; }