19 using Lucene.Net.Search;
20 using Lucene.Net.Search.Function;
22 namespace Lucene.Net.Spatial.Util
30 readonly
Filter startingFilter;
32 public readonly
double min;
33 public readonly
double max;
37 if (startingFilter == null)
39 throw new ArgumentException(
"please provide a non-null startingFilter; you can use QueryWrapperFilter(MatchAllDocsQuery) as a no-op filter",
"startingFilter");
41 this.startingFilter = startingFilter;
47 public override DocIdSet GetDocIdSet(Index.IndexReader reader)
49 var values = source.GetValues(reader);
61 this.enclosingFilter = caller;
65 public override bool Match(
int doc)
68 return val >= enclosingFilter.min && val <= enclosingFilter.max;