FuzzyTermsEnum

constructor(terms: Terms, term: Term, maxEdits: Int, prefixLength: Int, transpositions: Boolean)

Constructor for enumeration of all terms from specified reader which share a prefix of length prefixLength with term and which have at most maxEdits edits.

After calling the constructor the enumeration is already pointing to the first valid term if such a term exists.

Parameters

terms

Delivers terms.

term

Pattern term.

maxEdits

Maximum edit distance.

prefixLength

the length of the required common prefix

transpositions

whether transpositions should count as a single edit

Throws

IOException

if there is a low-level IO error