private class QueryIndex.TermsHashBuilder extends SearcherFactory
| Modifier | Constructor and Description |
|---|---|
private |
TermsHashBuilder() |
| Modifier and Type | Method and Description |
|---|---|
IndexSearcher |
newSearcher(IndexReader reader,
IndexReader previousReader)
Returns a new IndexSearcher over the given reader.
|
public IndexSearcher newSearcher(IndexReader reader, IndexReader previousReader) throws java.io.IOException
SearcherFactorynewSearcher in class SearcherFactoryreader - the reader to create a new searcher forpreviousReader - the reader previously used to create a new searcher.
This can be null 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.java.io.IOException