This exception is thrown when an {@link IndexReader} tries to make changes to the index (via {@link IndexReader#deleteDocument}, {@link IndexReader#undeleteAll} or {@link IndexReader#setNorm}) but changes have already been committed to the index since this reader was instantiated. When this happens you must open a new reader on the current index to make the changes.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[SerializableAttribute]
public class StaleReaderException : IOException
Visual Basic
<SerializableAttribute> _
Public Class StaleReaderException _
	Inherits IOException
Visual C++
[SerializableAttribute]
public ref class StaleReaderException : public IOException

Inheritance Hierarchy

System..::..Object
  System..::..Exception
    System..::..SystemException
      System.IO..::..IOException
        Lucene.Net.Index..::..StaleReaderException

See Also