Apache Lucene.Net 2.4.0 Class Library API

Directory.Sync Method 

Ensure that any writes to the file are moved to stable storage. Lucene uses this to properly commit chages to the index, to prevent a machine/OS crash from corrupting the index.

public virtual void Sync(
   string name
);

Parameters

name

See Also

Directory Class | Lucene.Net.Store Namespace