public interface IndexSearcherProvider
IndexSearcher
and SearcherManager
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.IndexSearcher |
acquireIndexSearcher()
Returns an instance of the
IndexSearcher . |
org.apache.lucene.search.LRUQueryCache |
getDefaultQueryCache()
Returns static DefaultQueryCache from
IndexSearcher . |
org.apache.lucene.search.SearcherManager |
getSearcherManager()
Returns an instance of the
SearcherManager . |
void |
releaseIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
The method must be invoked for
IndexSearcher got with the acquireIndexSearcher() after all
search operations are completed |
static final java.lang.String NAME
org.apache.lucene.search.SearcherManager getSearcherManager()
SearcherManager
. Application uses the single instance of this class.org.apache.lucene.search.IndexSearcher acquireIndexSearcher()
IndexSearcher
. After search operations are completed, the releaseIndexSearcher(IndexSearcher)
must be invoked.void releaseIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
IndexSearcher
got with the acquireIndexSearcher()
after all
search operations are completedorg.apache.lucene.search.LRUQueryCache getDefaultQueryCache()
IndexSearcher
.