19 using System.Collections.Generic;
22 using SpanQuery = Lucene.Net.Search.Spans.SpanQuery;
24 namespace Lucene.Net.Search
43 protected internal SpanQuery internalQuery;
56 this.internalQuery = query;
69 Lucene.Net.Search.Spans.Spans spans = internalQuery.GetSpans(reader);
75 int doc = spans.Doc();
77 if (currentDoc != doc)
83 currentInfo.AddPosition(spans.Start(), spans.End());
91 get {
return internalQuery; }
94 public override System.String ToString()
96 return "SpanQueryFilter(" + internalQuery +
")";
99 public override bool Equals(System.Object o)
104 public override int GetHashCode()
106 return internalQuery.GetHashCode() ^ unchecked((
int) 0x923F64B9);