Updating Collections Strategy and Faceting New Field
TLDR 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.
Apr 13, 2021 (34 months ago)
Nithin
01:04 PMKishore Nallan
01:06 PMKishore Nallan
01:12 PM.*_facet
and define that to be facetable. So any field matching that regexp will be automatically added to facet index NithinKishore Nallan
01:13 PMNithin
01:15 PMKishore Nallan
01:19 PMtypesense/typesense:0.20.0.rc39
Just define a field like this:
{"name": ".*_str_facet", "type": "string", "facet": true}
So any field name ending with
_str_facet
will then be treated as a facetable field automatically. This lays the foundation for us to allow schema updates in future for non-dynamic fields from older versions of Typesense.Kishore Nallan
01:20 PMNithin
01:28 PMNithin
02:01 PMKishore Nallan
02:02 PMcustomer.name
kinda convention and then search on that. Again, this is something that’s on our roadmap to address.Typesense
Indexed 3005 threads (79% resolved)
Similar Threads
Discussions on Typesense, Collections, and Dynamic Fields
Tugay shares plans to use Typesense for their SaaS platform and asks about collection sizes and sharding. Jason clarifies Typesense's capabilities and shares a beta feature. They discuss using unique collections per customer and new improvements. Kishore Nallan and Gabe comment on threading and data protection respectively.
Faceting Objects in Typesense
John wants to facet objects in Typesense, but faces issues. Kishore Nallan suggests creating a feature request on GitHub.
Changing Facet Value of Indexed Collections
Roshan wanted to alter the facet value of fields after indexing. Kishore Nallan explained the current limitation, suggested pre-creation of collection before syncing. Faceted search is also encountered an unknown issue, Kishore Nallan advised to raise the issue in Github.
Cold Start Problem with Dynamic Collections
Adrian reported cold start issues with dynamic collections. Jason suggested using wildcard `*` for query_by parameters, upgrading to `0.25.0.rc34`, and clarified conventions. Adrian's issues were resolved but they reported a limitation that will potentially be addressed.
Release and Features of Typesense v0.20
Jason announced the Typesense v0.20 release and its new features. Mica inquired about the schema and was informed that new fields can be added without reindexing. Alex congratulated the team.