replace()

Creates an explicit replacement operation for a field during an upsert.

Request Syntax

FieldOp.replace() -> FieldPartialUpdateOp

RETURN TYPE:

FieldPartialUpdateOp

RETURNS:

Operation message that selects replacement behavior. Replacement is also the default when no field operation is supplied.

Examples

Creates the explicit replacement operation value.

from pymilvus import FieldOp

op = FieldOp.replace()
print(op)

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?