Hi, I was looking at one of the demos <here> and s...
# community-help
m
Hi, I was looking at one of the demos here and saw the filterBy pannel on the left lists all the ingredients with the number besides it. I checked the source code and looks like it was implemented by instasearch adapter. I was wondering if I can get the filterBy tags with REST API? I didn’t find a lot of information on how to do it. Could someone help me here?
j
@Morgan Gao The adapter just makes calls out to the Typesense REST API. So you'll be able to see the network calls being made in your browser's dev tools as you interact with the demo. You're looking for the
facet_by
search parameter to get those counts: https://typesense.org/docs/0.22.2/api/documents.html#facet-results
m
oh cool, thanks Jason!
👍 1