public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts) { return new SimpleAutomatonTermsEnum(this, terms.Iterator(null)); }
public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts) { return new SimplePrefixTermsEnum(this, terms.Iterator(null), Prefix); }
public TermsEnum TermsEnum(Terms terms) { return terms.Iterator(null); }
public TermsEnum TermsEnum(Terms terms) { return NumericUtils.FilterPrefixCodedLongs(terms.Iterator(null)); }
public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts) { return new TermRangeTermsEnumAnonymousInnerClassHelper(this, terms.Iterator(null), new BytesRef("2"), new BytesRef("7")); }
public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts) { if (MaxEdits_Renamed == 0 || PrefixLength_Renamed >= _term.Text().Length) // can only match if it's exact { return new SingleTermsEnum(terms.Iterator(null), _term.Bytes); } return new FuzzyTermsEnum(terms, atts, Term, MaxEdits_Renamed, PrefixLength_Renamed, Transpositions_Renamed); }
public override TermsEnum GetTermsEnum(Terms terms, AttributeSource atts) { TermsEnum tenum = terms.Iterator(null); if (_prefix.Bytes.Length == 0) { // no prefix -- match all terms for this field: return tenum; } return new PrefixTermsEnum(tenum, _prefix.Bytes); }