update
operation to update parts of existing records in dense or sparse indexes. To update entire records, use the upsert
operation instead.
update
operation does not validate the existence of IDs within an index. If a non-existent ID is specified, no records are affected and a 200 OK
status is returned.namespace
, record id
, and the new dense vector values
. The new dense vector values must have the same length as the existing dense vector values.
In this example, assume you want to update the dense vector values of the following record in the example-namespace
namespace:
namespace
, record id
, and the new sparse_values
.
In this example, assume you are updating the sparse vector values of the following record in the example-namespace
namespace:
indices
array is changed, but the rest of the record is unchanged:
example-namespace
namespace:
type
metadata field is web
, the new
property is added with the value true
, and the genre
property is unchanged:
upsert
operation instead.example-namespace
namespace:
genre
metadata value are changed, but the type
metadata value is unchanged: