FileDocCategorySizeDatePackage
LuceneDictionary.javaAPI DocApache Lucene 2.2.02869Sat Jun 16 22:21:02 BST 2007org.apache.lucene.search.spell

LuceneDictionary

public class LuceneDictionary extends Object implements Dictionary
Lucene 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
author
Nicolas Maisonneuve
author
Christian Mallwitz

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.IteratorgetWordsIterator()

    return new LuceneIterator();