-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hello all,
Currently I have a filter in my ais-instant-search defined as follows:
<template>
<ais-instant-search :search-client="searchClient" index-name="products">
{{ This-Is-Where-I-Want-Access-To-Search-Results }}
<div id="brands-filter" v-if="????">
<h3 class="catalog-category font-semibold mb-1">Brands:</h3>
<div>
<ais-refinement-list operator="or" attribute="brand" :limit="5" :show-more="true" >
<template></template>
</ais-refinement-list>
</div>
</div>
..........
What I want to do is hide the div with id brands-filter based on the search results returned.
So if no brands are returned at all in FacetsDistribution this entire div can be hidden.
To be able to do this I need access to the search results, however, I do not seem to able
to retrieve the search results in such a way that I can fill the v-if in the sample above.
Any suggestions about how I can access the search results would be really helpful!
Cheers!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working