|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.flint.SearcherManager
public class SearcherManager
Manager for searches.
Usage:
IndexSearcher searcher = searcherManager.get(); try {} finally { searcherManager.release(searcher); }
Constructor Summary | |
---|---|
SearcherManager(IndexReader reader)
Create a new SearcherManager using the given writer. |
|
SearcherManager(IndexWriter writer)
Create a new SearcherManager using the given writer. |
Method Summary | |
---|---|
void |
maybeReopen()
Trigger a check to reopen the reader. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearcherManager(IndexWriter writer) throws IOException
writer
- the IndexWriter used to load the real-time reader.
IOException
- If thrown while trying to get the reader.public SearcherManager(IndexReader reader) throws IOException
reader
- the IndexWriter used to load the real-time reader.
IOException
- If thrown while trying to get the reader.Method Detail |
---|
public void maybeReopen() throws InterruptedException, IOException
InterruptedException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |