21 using Term = Lucene.Net.Index.Term;
23 namespace Lucene.Net.Search
37 private bool endEnum =
false;
43 SetEnum(reader.Terms(
new Term(prefix.Field, prefix.Text)));
46 public override float Difference()
51 public override bool EndEnum()
56 protected internal virtual Term PrefixTerm
58 get {
return prefix; }
61 protected internal override bool TermCompare(
Term term)
63 if ((System.Object) term.Field == (System.Object) prefix.Field && term.Text.StartsWith(prefix.Text))