SearcherManager
Creates and returns a new SearcherManager from the given IndexWriter.
Parameters
the IndexWriter to open the IndexReader from.
An optional SearcherFactory. Pass null if you don't require the searcher to be warmed before going live or other custom behavior.
Throws
if there is a low-level I/O error
Expert: creates and returns a new SearcherManager from the given IndexWriter, controlling whether past deletions should be applied.
Parameters
the IndexWriter to open the IndexReader from.
If true, all buffered deletes will be applied (made visible) in the IndexSearcher / DirectoryReader. If false, the deletes may or may not be applied, but remain buffered (in IndexWriter) so that they will be applied in the future. Applying deletes can be costly, so if your app can tolerate deleted documents being returned you might gain some performance by passing false. See DirectoryReader.openIfChanged.
If true, new deletes will be forcefully written to index files.
An optional SearcherFactory. Pass null if you don't require the searcher to be warmed before going live or other custom behavior.
Throws
if there is a low-level I/O error
Creates and returns a new SearcherManager from the given Directory.
Parameters
the directory to open the DirectoryReader on.
An optional SearcherFactory. Pass null if you don't require the searcher to be warmed before going live or other custom behavior.
Throws
if there is a low-level I/O error
Creates and returns a new SearcherManager from an existing DirectoryReader. Note that this steals the incoming reference.
Parameters
the DirectoryReader.
An optional SearcherFactory. Pass null if you don't require the searcher to be warmed before going live or other custom behavior.
Throws
if there is a low-level I/O error