Updating Patch Documents in Typesense
TLDR Jason queried about possible patch document updates, Jason confirmed this and provided necessary links. Differences between update, upsert and emplace were clarified.
Dec 02, 2022 (10 months ago)
Jason
03:59 AMJason
04:00 AMFor single documents: https://typesense.org/docs/0.23.1/api/documents.html#update-a-document
For bulk imports: https://typesense.org/docs/0.23.1/api/documents.html#action-modes-batch-create-upsert-update-emplace
Jason
04:01 AM{
foo: 1
bar: 2
}
and update consisting of
{
foo: 2
}
will update foo and leave bar in place?
Jason
04:09 AMJason
04:22 AMJason
04:22 AMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Discussing Partial Upsert of a Document
gab asked about possibly doing a partial upsert of a document. Jason clarified the concept of upsert and provided supportive links for upserting and updating single and batch documents.

Suggestion for Supporting Bulk Patch-Update API
Atul suggests supporting bulk patch-update API, but Jason mentions the `action=emplace` option which allows sending partial attributes.


Issues with Version "0.23.0.rc69" and Upsert Request in Typesense
Bill raised a concern about inconsistent performance of version "0.23.0.rc69" and upsert issues in Typesense. Jason advised upgrading to version "0.23" and switching to "emplace" instead of "upsert". Kishore Nallan provided additional clarification.
