refinementList does not show

I have a simple instantsearch.js setup pulled directly from github and I have been tinkering around it to see the possibilities.

everything is wokring as the documentation is showing until I tried the refinementList

So I createa a widget like so:

const refinementWidget = instantsearch.widgets.refinementList({
  container: '#refinementlist',
  attribute: 'lastname',
});

And then I add it to the addWidget function like so:

search.addWidgets([refinementWidget]);

my html markup:

    <div id="refinementlist"></div>

I also checked if there are any attribute called lastname and there is. I retrieve all when I try use the hits widget.

I hope anybody can shed some light on this :slight_smile: Thanks!

This issue is solved. I forgot to set the facet for the attribute.

1 Like