java.lang.Object
org.apache.lucene.search.SearcherFactory
org.apache.lucene.monitor.TermsHashBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<IndexReader.CacheKey, QueryIndex.QueryTermFilter> -
Constructor Summary
ConstructorsConstructorDescriptionTermsHashBuilder(Map<IndexReader.CacheKey, QueryIndex.QueryTermFilter> termFilters) -
Method Summary
Modifier and TypeMethodDescriptionnewSearcher(IndexReader reader, IndexReader previousReader) Returns a new IndexSearcher over the given reader.
-
Field Details
-
termFilters
-
-
Constructor Details
-
TermsHashBuilder
TermsHashBuilder(Map<IndexReader.CacheKey, QueryIndex.QueryTermFilter> termFilters)
-
-
Method Details
-
newSearcher
Description copied from class:SearcherFactoryReturns a new IndexSearcher over the given reader.- Overrides:
newSearcherin classSearcherFactory- Parameters:
reader- the reader to create a new searcher forpreviousReader- the reader previously used to create a new searcher. This can benullif 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:
IOException
-