Method UpdateDocuments
UpdateDocuments(Term, IEnumerable<IEnumerable<IIndexableField>>)
Atomically deletes documents matching the provided
delTerm
and adds a block of documents with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
@lucene.experimental
Declaration
public virtual void UpdateDocuments(Term delTerm, IEnumerable<IEnumerable<IIndexableField>> docs)
Parameters
Type | Name | Description |
---|---|---|
Term | delTerm | |
IEnumerable<IEnumerable<IIndexableField>> | docs |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |
See Also
UpdateDocuments(Term, IEnumerable<IEnumerable<IIndexableField>>, Analyzer)
Atomically deletes documents matching the provided
delTerm
and adds a block of documents, analyzed using
the provided analyzer
, with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
@lucene.experimental
Declaration
public virtual void UpdateDocuments(Term delTerm, IEnumerable<IEnumerable<IIndexableField>> docs, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
Term | delTerm | |
IEnumerable<IEnumerable<IIndexableField>> | docs | |
Analyzer | analyzer |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |