Version number when this IndexReader was opened. Not implemented in the
IndexReader base class.
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 returns the version recorded in the commit that the reader
opened. This version is advanced every time {@link IndexWriter#Commit} is
called.
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 returns the version of the last
commit done by the writer. Note that even as further changes are made
with the writer, the version will not changed until a commit is
completed. Thus, you should not rely on this method to determine when a
near real-time reader should be opened. Use {@link #IsCurrent} instead.
unless overridden in subclass
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual long GetVersion() |
Visual Basic |
---|
Public Overridable Function GetVersion As Long |
Visual C++ |
---|
public: virtual long long GetVersion() |
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Index.IndexReader.GetVersion"]