Post ASf5x0XVQJGCjdrQMS by shaneafsar@mastodon.online
 (DIR) More posts by shaneafsar@mastodon.online
 (DIR) Post #ASP21xYIJjuARb5LtI by janhenckens@mastodon.ninja
       2023-02-06T12:32:07Z
       
       0 likes, 0 repeats
       
       Anyone I follow on here that has experience with #algolia & their #instantsearch library? I'm struggling to get a date-based filter working and the docs aren't really helping. Boosts appreciated!
       
 (DIR) Post #ASP2ayWwfjnPc69QhM by aaronbushnell@mastodon.social
       2023-02-06T12:38:27Z
       
       0 likes, 0 repeats
       
       @janhenckens Last I used it they recommended storing a Unix timestamp and querying against that. So any date filtering just becomes a comparison against a ‘datetime’ property on your records.
       
 (DIR) Post #ASP2tD5lGt4VzJ8Bqi by janhenckens@mastodon.ninja
       2023-02-06T12:41:45Z
       
       0 likes, 0 repeats
       
       @aaronbushnell I have the timestamp in my index, the field is defined as a numericFilter property, the filter syntax matches their examples. And yet once I enable it all my results are gone 🤔 Got any syntax/code snippet you can share for the filter?
       
 (DIR) Post #ASP3ZKOUVqSqnUyW2a by aaronbushnell@mastodon.social
       2023-02-06T12:44:11Z
       
       0 likes, 0 repeats
       
       @janhenckens I’ll shoot you one here! Is your field set as a filterable attribute? I sometimes forget to set that and it drives me crazy during debugging
       
 (DIR) Post #ASP3ZKvSXGpsRkOqQa by janhenckens@mastodon.ninja
       2023-02-06T12:49:21Z
       
       0 likes, 0 repeats
       
       @aaronbushnell Yep, found that half-way through. Didn't fix it though...
       
 (DIR) Post #ASP42EekvMFXOsMoBU by stevengrant@glasgow.social
       2023-02-06T12:54:34Z
       
       0 likes, 0 repeats
       
       @janhenckens @aaronbushnell gotta set the ranking and sorting too https://d.pr/i/aRgXDZ
       
 (DIR) Post #ASP6f7hmtyK92mSKVE by janhenckens@mastodon.ninja
       2023-02-06T13:24:02Z
       
       0 likes, 0 repeats
       
       @stevengrant @aaronbushnell  Hmmm, my timestamp field is listed as string, that could very well be the problem 🤔 I'll try to fix that first🕵️
       
 (DIR) Post #ASP6zboQfqFSD9KZAu by janhenckens@mastodon.ninja
       2023-02-06T13:27:44Z
       
       0 likes, 0 repeats
       
       @stevengrant @aaronbushnell Yep, that did the trick 😀 Thanks 🎩
       
 (DIR) Post #ASP7TJ7YjURMvbRL5U by aaronbushnell@mastodon.social
       2023-02-06T13:28:12Z
       
       0 likes, 0 repeats
       
       @janhenckens @stevengrant Glad you got it worked out! 🙌
       
 (DIR) Post #ASP7TJZD4gYgJMNQBc by janhenckens@mastodon.ninja
       2023-02-06T13:31:44Z
       
       0 likes, 0 repeats
       
       @aaronbushnell @stevengrant Up next: combining 2 indexes with different date sorting rules 😀
       
 (DIR) Post #ASP7jTnMoVFmfQhsMi by aaronbushnell@mastodon.social
       2023-02-06T13:36:00Z
       
       0 likes, 0 repeats
       
       @janhenckens @stevengrant Ohhh boy. Hey, sometimes the easier sounding thing is actually harder than the more complicated thing! Maybe one of those cases for ya! 🤞
       
 (DIR) Post #ASP839sAavzwfcKwEK by janhenckens@mastodon.ninja
       2023-02-06T13:39:35Z
       
       0 likes, 0 repeats
       
       @aaronbushnell Yeah, found some guides on how to do that too. Their documentation is soo extensive that it's a bit bunch sometimes and that makes it less clear.But once you get the hang of things (widgets, configuration), it's realllyyyy powerful.
       
 (DIR) Post #ASP87oyBjrWzHyNKEa by stevengrant@glasgow.social
       2023-02-06T13:40:24Z
       
       0 likes, 0 repeats
       
       @janhenckens @aaronbushnell I do that too, so gimme a shout if you get stuck
       
 (DIR) Post #ASf5x0XVQJGCjdrQMS by shaneafsar@mastodon.online
       2023-02-14T06:31:24Z
       
       0 likes, 0 repeats
       
       @janhenckens Hey @janhenckens! Just wanted to say feel free to reach out anytime if you have any more feedback for our documentation (or anything else!). Also would love to learn more about what you’re building & your use-case.