LuceneDictionarypublic class LuceneDictionary extends Object implements DictionaryLucene Dictionary: terms taken from the given field
of a Lucene index.
When using IndexReader.terms(Term) the code must not call next() on TermEnum
as the first call to TermEnum, see: http://issues.apache.org/jira/browse/LUCENE-6 |
Fields Summary |
---|
private IndexReader | reader | private String | field |
Constructors Summary |
---|
public LuceneDictionary(IndexReader reader, String field)
this.reader = reader;
this.field = field.intern();
|
Methods Summary |
---|
public final java.util.Iterator | getWordsIterator()
return new LuceneIterator();
|
|