DotLucene 1.4 API Documentation |

# IndexReader.LastModified Method (Directory)

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(
Directory directory
);

#### See Also

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