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.
1
1
1
Sep 12, 2021 (28 months ago)
clem
06:26 PMis it possible to edit the schema of an existing collection? or do I have to delete and create a new one?
clem
06:32 PMCaptainCodeman
08:21 PM1
1
Jason
08:56 PMWe plan to add the ability to change an existing collection’s schema in the release after next
1
clem
09:36 PMApr 02, 2022 (21 months ago)
Brandon
04:48 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
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.