Property RefreshOnCommit
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
RefreshOnCommit
Whether new commits are picked up automatically. Default false: the searcher only changes on Refresh().
public bool RefreshOnCommit { get; init; }
Property Value
Remarks
When true, Tantivy watches the index for commits (also commits by other processes) and reloads in the background. The next Acquire() after that swaps in the new searcher, so a commit becomes visible within a short delay (milliseconds in memory, up to about a second on disk), not as soon as Commit() returns. To see your own commit right away, call Refresh() after it.