Hello, If I want to print out all strings within distance 2 of a given string, how do I do it? I'm totally new to Lucene, so below are some parts that I'm starting to assemble. Any tips are welcome. (Note, I'm not trying to index or search through any particular document--I really just want to enumerate all the possible strings.)
Thank you. final LevenshteinAutomata levenshteinAutomata = new LevenshteinAutomata( "banana", true ) final Automaton automaton = levenshteinAutomata.toAutomaton( 2 ); final Term wildcardTerm = new Term( "*" ); final AutomatonQuery automatonQuery = new AutomatonQuery( wildcardTerm, automaton );