Editing Schema of an Existing Collection in Typesense
TLDR clem inquired about adding a new attribute in Typesense collection. CaptainCodeman suggested aliasing, while Jason recommended auto-schema detection, with a future plan to support schema changes. Brandon asked about updates on the feature.
Sep 12, 2021 (28 months ago)
is it possible to edit the schema of an existing collection? or do I have to delete and create a new one?
We plan to add the ability to change an existing collection’s schema in the release after next
Apr 02, 2022 (21 months ago)
Indexed 3015 threads (79% resolved)
Updating Schemas and Managing Collections in Typesense
Davide asked about updating schemas without reloading data, Jason recommended using aliases to point to timestamped collections and dropping old collections after an update.
Updating Collection Schema and Querying Unspecified Fields in Typesense
Stefan asked about updating a collection schema. Kishore Nallan stated it's not currently possible but suggested automatic schema detection in version 0.20. Rishabh sought a workaround and Jason suggested creating a new collection with a new schema and re-indexing the data. Rishabh also asked about defining custom field IDs which Jason confirmed is not possible with Typesense.
Updating Collections Strategy and Faceting New Field
Nithin asked about strategies for updating collections and faceting new fields. Kishore Nallan suggested creating another collection, indexing in the background and using aliases to switch live traffic over, and shared details about the upcoming release.