updateDocValues

fun updateDocValues(term: Term, vararg updates: Field): Long

Updates documents' DocValues fields to the given values. Each field update is applied to the set of documents that are associated with the Term to the same value. All updates are atomically applied and flushed together. If a doc values fields data is null the existing value is removed from all documents matching the term.

Return

The #sequence_number for this operation

Parameters

updates

the updates to apply

Throws

if the index is corrupt

IOException

if there is a low-level IO error