|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.suggest.FileDictionary
public class FileDictionary
Dictionary represented by a text file.
Format allowed: 1 string per line, optionally with a tab-separated integer value:
Constructor Summary | |
---|---|
FileDictionary(InputStream dictFile)
Creates a dictionary based on an inputstream. |
|
FileDictionary(Reader reader)
Creates a dictionary based on a reader. |
Method Summary | |
---|---|
TermFreqIterator |
getWordsIterator()
Return all words present in the dictionary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileDictionary(InputStream dictFile)
NOTE: content is treated as UTF-8
public FileDictionary(Reader reader)
Method Detail |
---|
public TermFreqIterator getWordsIterator()
Dictionary
getWordsIterator
in interface Dictionary
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |