23 using System.Collections.Generic;
24 using Lucene.Net.Index;
25 using Lucene.Net.Util;
27 namespace Lucene.Net.Spatial.Util
37 private readonly String fieldName;
39 private bool initialState =
true;
44 this.fieldName =
string.Intern(fieldName);
45 this.termEnum = reader.
Terms(
new Term(this.fieldName));
56 return t != null && t.
Field == fieldName ? t : null;
69 return termEnum.Next() ?
Term() : null;
87 termEnum = reader.Terms(
new Term(this.fieldName, value));
117 public int GetDocCount()
124 var termDocs = reader.TermDocs(
new Term(fieldName,
Term().Text));
125 while (termDocs.Next())
133 var termDocs = reader.TermDocs(
new Term(fieldName,
Term().Text));
134 while (termDocs.Next())
136 bits.
Set(termDocs.Doc);