Using 'Datetime' Field as Facet with Predefined Buckets
TLDR Vladimir asked how to use 'datetime' field as a facet with predefined buckets. Jason suggested using facet ranges.
1
Nov 04, 2023 (3 weeks ago)
Vladimir
11:03 PMI want to show a refinement menu with some predefined filters/buckets like this:
* Today
* Yesterday
* This week
* This month
* This quarter
* This year
Since "datetime" fields are stored as
long
, the default facet information returned by the engine does not make sense since the cardinality is too high.Nov 05, 2023 (3 weeks ago)
Jason
04:18 AM1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Improving System Performance and Typesense Query Efficiency
SamHendley was experiencing performance issues with Typesense's large-scale system testing and proposed several improvements. Both Jason and Kishore Nallan addressed the suggestions and corrected some misconceptions. They provided further clarification and recommended upgrades for better performance.
Handling Sales Prices with Dates in Typesense
Sam inquired about handling sales prices active between two dates in Typesense. Kishore Nallan suggested using fields for sale_price, sale_start, sale_end, and a daily cron job to update prices. They discussed how Typesense could potentially support this feature, and Kishore Nallan asked Sam to add this use case to an open issue for prioritization.
Fuzzy Search Restrictions and num_typos Extension Request
Ashwin seeks to limit the fields covered by fuzzy search and wants specification of typo tolerance per field. Kishore Nallan suggests num_typos syntax to control the behavior, with Ashwin agreeing and planning to raise a related issue on Github. Jason advises on comparing integer time stamps for InstantSearch usage.