Lucene.Net 1.4.3 Class Library

IndexReader.LastModified Method (String)

Returns the time the index in the named directory was last modified.

Synchronization of IndexReader and IndexWriter instances is no longer done via time stamps of the segments file since the time resolution depends on the hardware platform. Instead, a version number is maintained within the segments file, which is incremented everytime when the index is changed.

public static long LastModified(
   string directory
);

See Also

IndexReader Class | Lucene.Net.Index Namespace | IndexReader.LastModified Overload List