Package org.apache.lucene.monitor
Class TermsHashBuilder
- java.lang.Object
-
- org.apache.lucene.search.SearcherFactory
-
- org.apache.lucene.monitor.TermsHashBuilder
-
class TermsHashBuilder extends SearcherFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<IndexReader.CacheKey,QueryIndex.QueryTermFilter>
termFilters
-
Constructor Summary
Constructors Constructor Description TermsHashBuilder(java.util.Map<IndexReader.CacheKey,QueryIndex.QueryTermFilter> termFilters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexSearcher
newSearcher(IndexReader reader, IndexReader previousReader)
Returns a new IndexSearcher over the given reader.
-
-
-
Field Detail
-
termFilters
private final java.util.Map<IndexReader.CacheKey,QueryIndex.QueryTermFilter> termFilters
-
-
Constructor Detail
-
TermsHashBuilder
TermsHashBuilder(java.util.Map<IndexReader.CacheKey,QueryIndex.QueryTermFilter> termFilters)
-
-
Method Detail
-
newSearcher
public IndexSearcher newSearcher(IndexReader reader, IndexReader previousReader) throws java.io.IOException
Description copied from class:SearcherFactory
Returns a new IndexSearcher over the given reader.- Overrides:
newSearcher
in classSearcherFactory
- Parameters:
reader
- the reader to create a new searcher forpreviousReader
- the reader previously used to create a new searcher. This can benull
if unknown or if the given reader is the initially opened reader. If this reader is non-null it can be used to find newly opened segments compared to the new reader to warm the searcher up before returning.- Throws:
java.io.IOException
-
-