19 using System.Collections.Generic;
23 namespace Lucene.Net.Search.Highlight
30 private bool _positionSensitive;
31 private readonly List<PositionSpan> _positionSpans =
new List<PositionSpan>();
37 this._positionSpans =
new List<PositionSpan>();
44 this._positionSensitive = positionSensitive;
52 public bool CheckPosition(
int position)
59 foreach (var positionSpan
in _positionSpans)
61 if (((position >= positionSpan.Start) && (position <= positionSpan.End)))
70 public void AddPositionSpans(List<PositionSpan> positionSpans)
72 this._positionSpans.AddRange(positionSpans);
75 public bool IsPositionSensitive()
77 return _positionSensitive;
80 public void SetPositionSensitive(
bool positionSensitive)
82 this._positionSensitive = positionSensitive;
85 public List<PositionSpan> GetPositionSpans()
87 return _positionSpans;
95 public int Start {
get;
private set; }
96 public int End {
get;
private set; }