Querying and Updating Specific Documents in Client Collections
TLDR Philipe inquired about updating documents using a query. Kishore Nallan said it's not possible yet, requested a Github issue to incorporate it into their roadmap.
Dec 14, 2021 (21 months ago)
Philipe
12:40 PMclient.collections('companies').documents().where({fieldA: 'xyz'}).update(document)
Kishore Nallan
01:02 PMKishore Nallan
01:02 PMPhilipe
01:06 PM.where({specificfield: 'specificIdentifier'})
Kishore Nallan
01:07 PMid
then: https://typesense.org/docs/0.22.1/api/documents.html#update-a-documentDon't have a way to target using a regular field.
Philipe
01:09 PMKishore Nallan
01:10 PMPhilipe
01:10 PMPhilipe
01:19 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Bulk Updating Records via Query in Typesense
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.
Adding and Updating Collections in Typesense Server
sonu asked about methods to add and update collections in a Typesense server. Jason advised that documents can be added individually or in bulk, and updates can be batched using the import function, even with a small React app with a MySQL database.

Updating Documents by Query and Sorting by Float Fields
Saurabh asked how to update documents by query and whether float fields can be used for sorting. Kishore Nallan provided information on updating by query and advised using int64 type instead of float for unix timestamps.

Troubleshooting Typesense Document Update Error
Mehdi had an issue with updating Typesense documents which returned a '404 Not Found' error. Kishore Nallan after several debugging steps, discovered Mehdi was using an outdated Typesense version. The issue was resolved after upgrading Typesense.


Handling Kinesis Stream Event Batching with Typesense
Dui had questions about how to handle Kinesis stream events with Typesense. Kishore Nallan suggested using upsert mode for creation/update and differentiating with logical deletion. After various discussions including identifying and resolving a bug, they finalized to introduce an `emplace` action in Typesense v0.23.

