@Component(value="fts_IndexSearcherProvider") public class IndexSearcherProviderBean extends java.lang.Object implements IndexSearcherProvider
NAME
Constructor and Description |
---|
IndexSearcherProviderBean() |
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 IndexSearcherProvider.acquireIndexSearcher() after all
search operations are completed |
public org.apache.lucene.search.SearcherManager getSearcherManager()
IndexSearcherProvider
SearcherManager
. Application uses the single instance of this class.getSearcherManager
in interface IndexSearcherProvider
public org.apache.lucene.search.IndexSearcher acquireIndexSearcher()
IndexSearcherProvider
IndexSearcher
. After search operations are completed, the IndexSearcherProvider.releaseIndexSearcher(IndexSearcher)
must be invoked.acquireIndexSearcher
in interface IndexSearcherProvider
public void releaseIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
IndexSearcherProvider
IndexSearcher
got with the IndexSearcherProvider.acquireIndexSearcher()
after all
search operations are completedreleaseIndexSearcher
in interface IndexSearcherProvider
public org.apache.lucene.search.LRUQueryCache getDefaultQueryCache()
IndexSearcherProvider
IndexSearcher
.getDefaultQueryCache
in interface IndexSearcherProvider