Take a snapshot of the most recent commit to the
index. You must call release() to free this snapshot.
Note that while the snapshot is held, the files it
references will not be deleted, which will consume
additional disk space in your index. If you take a
snapshot at a particularly bad time (say just before
you call optimize()) then in the worst case this could
consume an extra 1X of your total index size, until
you release the snapshot.
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual IndexCommitPoint Snapshot() |
Visual Basic |
---|
Public Overridable Function Snapshot As IndexCommitPoint |
Visual C++ |
---|
public: virtual IndexCommitPoint^ Snapshot() |
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Index.SnapshotDeletionPolicy.Snapshot"]