Documents
Upsert documents
Use the upsert
method to update or insert documents.
Every document must have a string _id
field.
Every document is uniquely identified by its _id
, which means that upserting a document with an existing _id
will update the document.
To upsert documents, you can pass a list of documents to the upsert
method. TopK will insert new documents or overwrite existing ones
if they have the same _id
.
Please note that nested types (eg. dicts and lists) are currently not supported. The only exception for complex types applies to f32 vectors, u8 vectors, binary vectors, and bytes.
Need support or want to give some feedback? You can join our community or drop us an email at support@topk.io.
Was this page helpful?