Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
How can I get all facets from a collection in Shopify with the algoliasearch package for Javascript?

I am building a product filter for a web shop using Algolia. In order to build my refinement list, I need all facet values from a specific collection. So for example, if I visit a collection called 'Bicycles' I would like to retrieve some of the following facets with their values:

  • Colors: 'Green', 'Blue', 'Red'
  • Gears: 0, 2, 4, 6, 8, 10

I would be nice if I could do something like

 //* is for the wilcard to get every facet insteaad if specifying the ones I want.
 index.searchForFacetValues('*', {
   filters: 'collections:bicycles'
 }).then(({ facetHits }) => {
   console.log(facetHits);
});

I've searched on the docs of Algolia but, I couldn't find anything about it.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!