You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for a way of adding a refinement programmatically.
My use case is the following:
When someone visits /category/category1 I get a category_id.
I want to only display the entries that have this specific category_id. (which is an attribute on my index entries of course).
So when I set my host, index and type (using this.setHost, this.setIndex and this.setType) I also want to set a refinement (e.g. this.setRefinement('category_id', category_id) ) and only display those.
How would I go for achieving that?
The text was updated successfully, but these errors were encountered:
I am looking for a way of adding a refinement programmatically.
My use case is the following:
When someone visits /category/category1 I get a category_id.
I want to only display the entries that have this specific category_id. (which is an attribute on my index entries of course).
So when I set my host, index and type (using this.setHost, this.setIndex and this.setType) I also want to set a refinement (e.g. this.setRefinement('category_id', category_id) ) and only display those.
How would I go for achieving that?
The text was updated successfully, but these errors were encountered: