update
operation with the following parameters:
namespace
: The namespace containing the record to update. To use the default namespace, set the namespace to "__default__"
.id
: The ID of the record to update.values
: For dense vectors. Must have the same length as the existing vector.sparse_values
: For sparse vectors.setMetadata
: The metadata to add or change. When updating metadata, only the specified metadata fields are modified, and if a specified metadata field does not exist, it is added.200 OK
status is returned.example-namespace
namespace:
genre
metadata value are changed, but the type
metadata value is unchanged:
unstable
version of the API. See limitations for details.update
operation with the following parameters:
namespace
: The namespace containing the records to update. To use the default namespace, set this to "__default__"
.
filter
: A metadata filter expression to match the records to update.
setMetadata
: The metadata to add or change. When updating metadata, only the specified metadata fields are modified. If a specified metadata field does not exist, it is added.
dry_run
: Optional. If true
, the number of records that match the filter expression is returned, but the records are not updated.
"dry_run": true
to check if you need to run the request multiple times. See the example below for details."dry_run": true
:
dry_run
parameter:
dry_run
request until the number of matching records shows that the first 100,000 records have been updated:
dry_run
request until the number of matching records shows that the remaining records have been updated:
unstable
version of the API."dry_run": true
to check if you need to run the request multiple times. See the example above for details.