#community-help

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
Join the chat
Feb 13, 2023 (10 months ago)
Hari
Photo of md5-4ea5e751953536e66df08fa3cf7919aa
Hari
08:04 PM
is it possible to update multiple ids on a single call?
Dima
Photo of md5-1b62114a658b760944aa7d2b4c274460
Dima
08:11 PM
You can use bulk import with update / upsert strategy

More info: https://typesense.org/docs/0.24.0/api/documents.html#index-multiple-documents
Hari
Photo of md5-4ea5e751953536e66df08fa3cf7919aa
Hari
08:31 PM
Thanks Dima
08:40
Hari
08:40 PM
Dima but i have to update all the field it seems.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:55 PM
Hari You can also send ?action=emplace and send partial documents
Hari
Photo of md5-4ea5e751953536e66df08fa3cf7919aa
Hari
09:14 PM
working thanks Jason

but permeant solution is Kishore Nallan's reply.

2