<@U024Q8SE67R> <@U02CMGJ84PP> Hi there - We are b...
# community-help
a
@Joshua Sosso @CaptainCodeman Hi there - We are building an application where we need to update the collection later on based on requirement, so can you please guide me how does collection updating works. 1. I have tried auto schema, it does add dynamic field but it will add any fields in collection, there is no schema validation over there and also I can not filter the data with auto schema collection. 1. I need to understand how we can update collection through alias if we have existing record in collection. https://typesense.org/docs/0.22.1/api/collections.html#update-a-collection
j
@Ajeet Kumar you can restrict which fields get added to the collection in auto schema detection by using a regex to limit field names instead of using “.*” Collection alias will work regardless of the number of documents in the collection. It’s just like a symlink
c
My plan, once past the dev stage, is to have collections with a version number appended which will match one configured in the app. As long as the index is built ahead of the code deploy, it shouldn't need any delay or downtime. Using the alias might be easier, but then I think I'd need to coordinate code-deploy + repointing the alias