Lucene.Net.Index.IndexReader.Reopen C# (CSharp) Method

Reopen() public method

Expert: reopen this reader on a specific commit point. This always returns a readOnly reader. If the specified commit point matches what this reader is already on, and this reader is already readOnly, then this same instance is returned; if it is not already readOnly, a readOnly clone is returned.
public Reopen ( IndexCommit commit ) : IndexReader
commit IndexCommit
return IndexReader
		public virtual IndexReader Reopen(IndexCommit commit)
		{
			lock (this)
			{
				throw new NotSupportedException("This reader does not support reopen(IndexCommit).");
			}
		}
		

Same methods

IndexReader::Reopen ( ) : IndexReader
IndexReader::Reopen ( bool openReadOnly ) : IndexReader

Usage Example

 private static IndexReader RefreshReader(IndexReader reader)
 {
     IndexReader oldReader = reader;
     reader = reader.Reopen();
     if (reader != oldReader)
     {
         oldReader.Close();
     }
     return reader;
 }
All Usage Examples Of Lucene.Net.Index.IndexReader::Reopen