* corresponding SearcherHolder.
* @see org.springmodules.resource.ResourceManager#close()
* @see SearcherFactoryUtils#releaseSearcher(SearcherFactory, Searcher)
*/
public void doClose() {
SearcherHolder holder=(SearcherHolder)ResourceBindingManager.getResource(this.searcherFactory);
// Remove the resource holder from the thread.
ResourceBindingManager.unbindResource(this.searcherFactory);
// Close searcher.
Searcher searcher = holder.getSearcher();
if (logger.isDebugEnabled()) {
logger.debug("Closing Lucene searcher [" + searcher + "]");
}
SearcherFactoryUtils.releaseSearcher(this.searcherFactory,searcher);
}