Table of Contents

Method DeleteDocuments

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

DeleteDocuments(Query)

Deletes every document matching query, among those added before this call (documents added later aren't affected). Takes effect on Commit().

public void DeleteDocuments(Query query)

Parameters

query Query

Examples

writer.DeleteDocuments(Query.Range("year", null, 1900L));

Exceptions

TantivyException

The query doesn't fit the schema (see Search(Query, SearchOptions)).