Exclude certain products from result

I am using vue-instant-search to get 20 products based on what the users enters in a search field.

How can I exclude products that are having isInStock = false from the results and still get 20 products?

UPDATE
I managed to find how to filter on brands:

<ais-configure
  :query="searchQuery"
  :hits-per-page.camel="20"
  :optional-words.camel="searchQuery"
  :filters="filters"/>

export default {
name: 'srp',
data() {
  return {
    filters: 'brand:"Fort Tempus"',
  }
},
}

So the questions becomes:
How do I filter on a boolean? I have tried this:

export default {
name: 'srp',
data() {
  return {
    filters: 'isInStock:true',
  }
},
}

Found the answer by trail and error :smiley:

 <ais-configure
  :query="searchQuery"
  :hits-per-page.camel="20"
  :optional-words.camel="searchQuery"
  :filters="'isInStock=1'"/>
1 Like