Search in sources :

Example 11 with TokenStreamToAutomaton

use of org.apache.lucene.analysis.TokenStreamToAutomaton in project lucene-solr by apache.

the class FuzzySuggester method getTokenStreamToAutomaton.

@Override
TokenStreamToAutomaton getTokenStreamToAutomaton() {
    final TokenStreamToAutomaton tsta = super.getTokenStreamToAutomaton();
    tsta.setUnicodeArcs(unicodeAware);
    return tsta;
}
Also used : TokenStreamToAutomaton(org.apache.lucene.analysis.TokenStreamToAutomaton)

Aggregations

TokenStreamToAutomaton (org.apache.lucene.analysis.TokenStreamToAutomaton)11 Automaton (org.apache.lucene.util.automaton.Automaton)5 HashSet (java.util.HashSet)4 IntsRef (org.apache.lucene.util.IntsRef)4 BytesRef (org.apache.lucene.util.BytesRef)3 BytesRefBuilder (org.apache.lucene.util.BytesRefBuilder)3 LimitedFiniteStringsIterator (org.apache.lucene.util.automaton.LimitedFiniteStringsIterator)3 TokenStream (org.apache.lucene.analysis.TokenStream)2 ByteArrayDataInput (org.apache.lucene.store.ByteArrayDataInput)2 ByteArrayDataOutput (org.apache.lucene.store.ByteArrayDataOutput)2 Directory (org.apache.lucene.store.Directory)2 IndexOutput (org.apache.lucene.store.IndexOutput)2 CharsRefBuilder (org.apache.lucene.util.CharsRefBuilder)2 IntsRefBuilder (org.apache.lucene.util.IntsRefBuilder)2 OfflineSorter (org.apache.lucene.util.OfflineSorter)2 Builder (org.apache.lucene.util.fst.Builder)2 PairOutputs (org.apache.lucene.util.fst.PairOutputs)2 Pair (org.apache.lucene.util.fst.PairOutputs.Pair)2 ArrayList (java.util.ArrayList)1 TreeSet (java.util.TreeSet)1