public interface IndexSearcherWrapper
DirectoryReader
and IndexSearcher
managed by the Engine
.Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.DirectoryReader |
wrap(org.apache.lucene.index.DirectoryReader reader) |
org.apache.lucene.search.IndexSearcher |
wrap(EngineConfig engineConfig,
org.apache.lucene.search.IndexSearcher searcher) |
org.apache.lucene.index.DirectoryReader wrap(org.apache.lucene.index.DirectoryReader reader) throws IOException
reader
- The provided directory reader to be wrapped to add custom functionalityIOException
org.apache.lucene.search.IndexSearcher wrap(EngineConfig engineConfig, org.apache.lucene.search.IndexSearcher searcher) throws EngineException
engineConfig
- The engine config which can be used to get the query cache and query cache policy from
when creating a new index searchersearcher
- The provided index searcher to be wrapped to add custom functionalityEngineException
Copyright © 2009–2016. All rights reserved.