#community-help

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.

Powered by Struct AI

1

1

1

Sep 12, 2021 (28 months ago)
clem
Photo of md5-cee46c31984a98d4d3b58844708480cb
clem
06:26 PM
hey folks,
is it possible to edit the schema of an existing collection? or do I have to delete and create a new one?
06:32
clem
06:32 PM
im still ramping up on typesense but its seems odd to me that if I add a new attribute on Firestore then I cannot edit my schema to include this new attribute :thinking_face:
CaptainCodeman
Photo of md5-d3a4ca49ba4aeb3b9d0cb7d846eb0989
CaptainCodeman
08:21 PM
I'm new to typesense myself, but I think the aliasing is the thing to use so you can create and index the new collection and then switch it to be active

1

1

Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:56 PM
In addition to the above, if you need to regularly add new fields, I’d recommend using auto-schema detection: https://typesense.org/docs/0.21.0/api/collections.html#create-a-collection

We plan to add the ability to change an existing collection’s schema in the release after next

1

clem
Photo of md5-cee46c31984a98d4d3b58844708480cb
clem
09:36 PM
nice thank you Jason CaptainCodeman
Apr 02, 2022 (21 months ago)
Brandon
Photo of md5-063304428be2e1920483c32d57b1880f
Brandon
04:48 PM
Has this been added>?