|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Searcher org.apache.lucene.search.IndexSearcher com.jalios.jcms.search.spell.SpellChecker.IndexSearcherWrapper
public class SpellChecker.IndexSearcherWrapper
For optimized used of the searcher, we keep it open as much as possible and delay its close only when it is replaced by a new one when modifying index.
Constructor Summary | |
---|---|
SpellChecker.IndexSearcherWrapper(org.apache.lucene.store.Directory dir)
|
Method Summary | |
---|---|
void |
close()
|
SpellChecker.IndexSearcherWrapper |
getReference()
|
Methods inherited from class org.apache.lucene.search.IndexSearcher |
---|
doc, doc, docFreq, explain, gatherSubReaders, getIndexReader, maxDoc, rewrite, search, search, search, search, setDefaultFieldSortScoring |
Methods inherited from class org.apache.lucene.search.Searcher |
---|
createWeight, docFreqs, explain, getSimilarity, search, search, search, search, search, search, search, search, search, search, search, search, setSimilarity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpellChecker.IndexSearcherWrapper(org.apache.lucene.store.Directory dir) throws IOException
IOException
Method Detail |
---|
public SpellChecker.IndexSearcherWrapper getReference()
public void close() throws IOException
close
in interface org.apache.lucene.search.Searchable
close
in class org.apache.lucene.search.IndexSearcher
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |