Updating Multiple ID's in a Single Call
TLDR Hari asked about updating multiple ids in a single call. Dima suggested bulk import and Jason suggested sending partial documents with ?action=emplace
.
Powered by Struct AI
2
7
10mo
Solved
Feb 13, 2023 (10 months ago)
Hari
Hari
08:04 PMis it possible to update multiple ids on a single call?
Dima
Dima
08:11 PMYou can use bulk import with update / upsert strategy
More info: https://typesense.org/docs/0.24.0/api/documents.html#index-multiple-documents
More info: https://typesense.org/docs/0.24.0/api/documents.html#index-multiple-documents
Hari
Hari
08:31 PMThanks Dima
08:40
Hari
08:40 PM Dima but i have to update all the field it seems.
08:41
Hari
08:41 PMJason
Jason
08:55 PM Hari You can also send
?action=emplace
and send partial documentsHari
Hari
09:14 PMworking thanks Jason
but permeant solution is Kishore Nallan's reply.
but permeant solution is Kishore Nallan's reply.
2
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3011 threads (79% resolved)
Similar Threads
Updating Multiple Records with Typesense
Shabber wanted to update multiple records based on ids. Kishore Nallan suggested using the import endpoint with 'update' action mode and provided examples.
8
6mo
Solved
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.
5
8mo
Solved
Multiple Update in Typesense
Nikunj requested info on multiple updates in typesense, which Dima answered with a link for bulk import.
4
10mo
Solved