large edit distances are no longer supported by FuzzyQuery
in Lucene 4.x. The current implementation of FuzzyQuery
is a huge improvement on performance from the Lucene 3.x implementation, but only supports two edits. Distances greater than 2 Damerau–Levenshtein edits are considered to rarely be really useful.
According to the FuzzyQuery
documentation, if you really must have higher edit distances:
If you really want this, consider using an n-gram indexing technique (such as the SpellChecker in the suggest module) instead.
The strong implication is that you should rethink what your trying to accomplish, and find a more useful approach.