#community-help

Setting Search Field to `Facet=True` in Catalog Quickly

TLDR John inquired about updating a search field setting. Jason suggested creating a new collection with an updated schema and utilizing a collection alias to mitigate downtime.

Powered by Struct AI

2

1

4
31mo
Solved
Join the chat
Jun 30, 2021 (31 months ago)
John
Photo of md5-7a0ab48aa8979a59e1d8c3919797c1f8
John
04:52 PM
Hi, wondering: I forgot to set a search field of my catalog to facet=true - what would be the quickest way to fix this?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:33 PM
You'd have to create a new collection with the updated schema and re-index the data unfortunately. We have an open item to make on-the-fly schema changes easier.

1

05:34
Jason
05:34 PM
I'd recommend setting up a collection alias and updating your application to use the alias, so you can do a zero downtime switch when you change the collection schema: https://typesense.org/docs/0.20.0/api/collection-alias.html

1

John
Photo of md5-7a0ab48aa8979a59e1d8c3919797c1f8
John
05:36 PM
OK Jason, thanks for the info!👍

1