
IndexWriter
- Namespace
- Rowles.LeanCorpus.Index.Indexer
- Assembly
- Rowles.LeanCorpus.dll
Accepts documents, analyses text fields, buffers in memory, and flushes immutable segments to disk. Coordinates commit, backpressure, merge, snapshot, deletion, and DWPT subsystems via dedicated manager classes.
public sealed class IndexWriter : IDisposable
- Inheritance
-
IndexWriter
- Implements
IndexWriter(MMapDirectory, IndexWriterConfig)
Initialises a new IndexWriter for the given directory with the specified configuration. Acquires an exclusive write lock on the directory. Only one writer may be open per directory at a time.
CurrentCommitGeneration
Gets the latest locally published commit generation.
CurrentContentToken
Gets the content token for the latest locally published commit.
HasPreparedCommit
NextSequenceNumber
AddDocument(LeanDocument)
Adds one document to the index.
AddDocumentAsync(LeanDocument, CancellationToken)
Adds one document asynchronously.
AddDocumentBlock(IReadOnlyList<LeanDocument>)
Adds an adjacent child-parent document block.
AddDocumentBlockAsync(IReadOnlyList<LeanDocument>, CancellationToken)
Adds an adjacent child-parent document block asynchronously.
AddDocumentLockFree(LeanDocument)
AddDocuments(IReadOnlyList<LeanDocument>)
Adds documents sequentially in list order.
AddDocumentsAsync(IAsyncEnumerable<LeanDocument>, int, CancellationToken)
Adds documents from an asynchronous sequence in bounded batches.
AddDocumentsAsync(IReadOnlyList<LeanDocument>, CancellationToken)
Adds documents asynchronously in list order.
AddDocumentsConcurrent(IReadOnlyList<LeanDocument>)
AddIndexes(MMapDirectory)
BackupSnapshot(IndexSnapshot, string, IndexBackupOptions?)
BackupSnapshot(IndexSnapshot, string, IndexBackupOptions?, CancellationToken)
BackupSnapshot(IndexSnapshot, string, CancellationToken)
Commit()
CommitAsync(CancellationToken)
Compact()
CreateBackupManifest(IndexSnapshot)
CreateSnapshot()
DeleteDocuments(TermQuery)
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.