| Please use discourse or stackoverflow for usage questions, and only create tickets for feature requests with a documented use cases or bug reports. As to your question: it's not possible. Lucene only supports a Levenshtein distance of at most 2. That's hardcoded into the algorithm. See the javadoc of org.apache.lucene.search.FuzzyQuery#FuzzyQuery(org.apache.lucene.index.Term, int, int, int, boolean) and org.apache.lucene.util.automaton.LevenshteinAutomata#MAXIMUM_SUPPORTED_DISTANCE. There may be other ways to achieve what you are trying to do, however. Post a question explaining your problem in more details, and maybe someone will suggest a solution. |