Resolving Doubts on File Import and Collection Update in Typesense
TLDR Ariosvaldo asked about import behavior and collection updates in Typesense. Dima clarified import strategies and explained adding optional and non-optional fields to collections.
Aug 22, 2023 (3 months ago)
optionalfield to the collection, so documents won’t require to have it. Or you can add new field to all documents and then add non-optional field to the collection.
Typesense allows documents to have fields even if they are not in the collection schema, they will be stored on disk and returned when requested, but not indexed until you add them to the collection.
Indexed 3015 threads (79% resolved)
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 Multiple Fields in Typesense Collections
Jamshid inquired about updating multiple fields in Typesense collections. Jason confirmed that multiple fields can be updated in one API call.
Troubleshooting Document Insertion to Collection
Vishal had trouble inserting documents into the collection. Jason suggested reading the response body for errors. Issue was likely due to non-optional fields in the schema.