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.ns1
namespace: ("id-3", [3.0, 3.0], {"type": "doc", "genre": "drama"})
.
("id-3", [4.0, 2.0], {"type": "doc", "genre": "drama"})
.
ns1
namespace:
(id="id-3", values=[4.0, 2.0], metadata={"type": "doc", "genre": "drama"})
.
type
metadata field is web
, the new
property is added with the value true
, and the genre
property is unchanged:
(id="id-3", values=[4.0, 2.0], metadata={"type": "web", "new": true, "genre": "drama"})
.
ns1
namespace:
indices
array is changed, but the rest of the record is unchanged:
ns1
namespace:
(id="id-3", values=[4.0, 2.0], metadata={"type": "doc", "genre": "drama"})
.
genre
metadata value would be changed, but the type
metadata value would be unchanged: (id="id-3", values=[5.0, 3.0], metadata={"type": "doc", "genre": "comedy"})
.