Table of Contents

Method Commit

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

Commit()

Makes all changes since the last commit durable and visible to new searchers.

public void Commit()

Remarks

A commit is all or nothing. If it fails (for example with an IO error), it throws and the writer is rolled back as if Rollback() had been called: the changes since the last successful commit are discarded, and the writer can be used again. Add them again to retry.

Exceptions

TantivyException

The commit failed; the writer was rolled back.