Method SetIndexReader
SetIndexReader(DirectoryReader)
Set the index reader. Takes ownership of that index reader, that is, internally performs indexReader.incRef() (If caller no longer needs that reader it should decRef()/close() it after calling this method, otherwise, the reader will remain open).
Declaration
public virtual void SetIndexReader(DirectoryReader indexReader)
Parameters
Type | Name | Description |
---|---|---|
DirectoryReader | indexReader | The indexReader to set. |