Modifying Arrays in Typesense Documents
TLDR Jacob asked about modifying array elements in Typesense. Kishore Nallan suggested creating separate collections as a workaround.
Oct 18, 2022 (11 months ago)
Jacob
06:48 AMdocument.entities
if it does not already exist” and “remove id X from document.entities
if it exists”.I’ve been looking through the docs but haven’t found anything, so I’m guessing it’s not supported. My idea to solve it is to create a separate collection and store each entry as it’s own document with
{listId: 'YYY', itemId: 'XXX'}
. It feels expensive, but I see no other way.Kishore Nallan
07:03 AMJacob
07:04 AMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Handling String Arrays in Typesense Documents
TJ asked about updating string arrays in documents. Jason confirmed retrieval and re-sending is needed, and suggested thumbs-up on a feature request.

Updating Array Field in Typesense Integration
Krish queried about updating array field on Typesense. Kishore Nallan explained how to do this, but noted that the array must be replaced instead of appended to.
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.
