JMKelley
JMKelley

Reputation: 658

Instantsearch.js Algolia + Category pages

I'm looking to implement Algolia's faceting functionality into my Category pages. I have it working great for the search results, but is there anyway to define a set of results when the page loads? e.g Only records which category is 'Shorts' without having to hardlink to a facet/search URL?

Upvotes: 0

Views: 306

Answers (1)

Haroen Viaene
Haroen Viaene

Reputation: 1360

You can add searchParameters with an initial filter on the instantsearch instance. There you can add the filter, depending on how your faceting is set up.

Doc

Upvotes: 0

Related Questions