Method UpdateBinaryDocValue
UpdateBinaryDocValue(Term, String, BytesRef)
Updates a document's BinaryDocValues for field
to the
given value
. this method can be used to 'unset' a document's
value by passing null
as the new value
. Also, you can only update
fields that already exist in the index, not add new fields through this
method.
NOTE: this method currently replaces the existing value of all affected documents with the new value.
NOTE: if this method hits an
Declaration
public virtual void UpdateBinaryDocValue(Term term, string field, BytesRef value)
Parameters
Type | Name | Description |
---|---|---|
Term | term | the term to identify the document(s) to be updated |
System.String | field | field name of the BinaryDocValues field |
BytesRef | value | new value for the field |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the index is corrupt |