deleteDocuments

fun deleteDocuments(vararg terms: Term): Long

Deletes the document(s) containing any of the terms. All given deletes are applied and flushed atomically at the same time.

Return

The #sequence_number for this operation

Parameters

terms

array of terms to identify the documents to be deleted

Throws

if the index is corrupt

IOException

if there is a low-level IO error


fun deleteDocuments(vararg queries: Query): Long

Deletes the document(s) matching any of the provided queries. All given deletes are applied and flushed atomically at the same time.

Return

The #sequence_number for this operation

Parameters

queries

array of queries to identify the documents to be deleted

Throws

if the index is corrupt

IOException

if there is a low-level IO error