Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

188
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda