#community-help

Bulk Updating Records via Query in Typesense

TLDR Greg inquired about bulk updating records in Typesense using a query but Jason clarified that it's not possible, instead suggesting a method to get document IDs for updates.

Powered by Struct AI
3
13mo
Solved
Join the chat
Nov 15, 2022 (13 months ago)
Greg
Photo of md5-11c0f771a29e2aa8d72ae9544cc39017
Greg
08:34 PM
Follow-up question. Can you do a bulk update via query? Let’s say I need to update the title field for every record that has a mediaId of ‘XYZ’? The docs sound like I need to have the ID for each update record.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:35 PM
Bulk update via a query is not possible. So you would have to query you primary data store with that filter, get the document IDs, and then update Typesense
Greg
Photo of md5-11c0f771a29e2aa8d72ae9544cc39017
Greg
08:36 PM
Thank you