V Parthiban
05/06/2025, 7:47 AMsort: true
for all dynamically created fields of type string
or number
, at the time of indexing โ without manually updating the schema afterward?
Since field names and types vary per document, defining the schema in advance isnโt practical. Any way to tell Typesense to default to sort: true
for eligible fields during auto-schema creation?
Thanks!Kishore Nallan
05/06/2025, 7:54 AM"name": ".*_str",
"sort": true
Then you have to make sure any field name that must use this rule to end with _str
.
Note: sort index on string fields can consume a lot of memory so you've to watch out for that for large datasets.