Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

189
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda