I am utilizing the Vue components from Algolia to perform a search on my index.
The search functionality is working correctly, but I am curious about setting the initial values for the refinement list upon page load.
This is how I have set up the search:
<script>
import algoliasearch from 'algoliasearch/lite'
export default {
name: 'Home',
data () {
return {
searchClient: algoliasearch(
'APPID',
'API-KEY'
)
}
}
}
</script>
...and here is an example of the refinement list (with code cut out for brevity):
<ais-instant-search
:search-client="searchClient"
index-name="properties"
>
<ais-refinement-list
attribute="borough"
:sortBy="['name:asc']"
/>
</ais-instant-search>
Upon landing on the page, all checkboxes in the refinement list are empty. I would like to know how to set some initial values or combinations for a specific query.
Is it even possible with these components? I have extensively reviewed the documentation but couldn't find any information regarding this feature. Perhaps I am using incorrect search terms.
Your help is greatly appreciated. Thank you.