For your demos I noticed that the counts are all c...
# community-help
v
For your demos I noticed that the counts are all consistent with the primary search term, in this case commits, is there a way to make the count reference something other than the primary search?
j
If you’re using Instantsearch UI library, I don’t believe this is possible to do. But if you’re building your UI, then you can facet on any field as needed
v
I'm using Instantsearch -- ok
do you know if you can easily range bound it?
j
May be there’s a way to build a custom widget to do that… and also make it a static bounded list if needed
v
eg lets say you want the various sort choices to be ranges rather than values
j
Ah that type of range… for that you would have to setup an attribute which defines the range in your dataset at indexing time
v
ok -- can't bucketize in the ui layer?
j
No unfortunately
For, eg in this demo: https://songs-search.typesense.org/?s%5Bquery%5D=Annie%27s%20song%20Denver Notice how the release year shows up in the UI, and in the dataset (browser dev console network tab - look for multi_search). There’s both a Unix timestamp and also a release_decade
v
ahh
ok