Re: WildCardTermEnum in Lucene 4.1

2013-03-25 Thread Ramprakash Ramamoorthy
On Thu, Mar 21, 2013 at 4:17 PM, Uwe Schindler wrote: > You can do the following: > > Automaton automaton = WildcardQuery.toAutomaton(wildcardTerm); // this > transforms the wildcard syntax with ? and * to a state machine > CompiledAutomaton compiled = new CompiledAutomaton(automaton); // copiles

RE: WildCardTermEnum in Lucene 4.1

2013-03-21 Thread Uwe Schindler
You can do the following: Automaton automaton = WildcardQuery.toAutomaton(wildcardTerm); // this transforms the wildcard syntax with ? and * to a state machine CompiledAutomaton compiled = new CompiledAutomaton(automaton); // copiles the state machine TermsEnum enum = compiled.getTermsEnum(terms