Package org.elasticsearch.index.engine
Class EngineSearcherFactory
- java.lang.Object
-
- org.apache.lucene.search.SearcherFactory
-
- org.elasticsearch.index.engine.EngineSearcherFactory
-
public class EngineSearcherFactory extends org.apache.lucene.search.SearcherFactory
Basic Searcher factory that allows returning anIndexSearcher
given anIndexReader
-
-
Constructor Summary
Constructors Constructor Description EngineSearcherFactory(EngineConfig engineConfig)
-
Method Summary
Modifier and Type Method Description org.apache.lucene.search.IndexSearcher
newSearcher(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.IndexReader previousReader)
-
-
-
Constructor Detail
-
EngineSearcherFactory
public EngineSearcherFactory(EngineConfig engineConfig)
-
-
Method Detail
-
newSearcher
public org.apache.lucene.search.IndexSearcher newSearcher(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.IndexReader previousReader) throws java.io.IOException
- Overrides:
newSearcher
in classorg.apache.lucene.search.SearcherFactory
- Throws:
java.io.IOException
-
-