Check whether any new changes have occurred to the index since this reader was opened.

If this reader is based on a Directory (ie, was created by calling {@link #open}, or {@link #reopen} on a reader based on a Directory), then this method checks if any further commits (see {@link IndexWriter#commit} have occurred in that directory).

If instead this reader is a near real-time reader (ie, obtained by a call to {@link IndexWriter#getReader}, or by calling {@link #reopen} on a near real-time reader), then this method checks if either a new commmit has occurred, or any new uncommitted changes have taken place via the writer. Note that even if the writer has only performed merging, this method will still return false.

In any event, if this returns false, you should call {@link #reopen} to get a new reader that sees the changes.

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

Syntax

C#
public virtual bool IsCurrent()
Visual Basic
Public Overridable Function IsCurrent As Boolean
Visual C++
public:
virtual bool IsCurrent()

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Index.IndexReader.IsCurrent"]

See Also