2021年2月10日星期三

How can i filter my search by an boolean atrribute?

How can i filter the hits? i have this structure: the Hit have an attribute 'like' its a boolean, i want to show only the Hits with like===true

 <Configure hitsPerPage={100} />     <Grid >       <Grid >         <Hits hitComponent={Hit} />       </Grid>     </Grid>  

in witch part can i use filter?

This is my configuration to search, by mean this documentation https://www.algolia.com/doc/api-reference/widgets/configure/react/

<InstantSearch          searchClient={vclient}          indexName={`myVarClient`}        >  

i was trying with <Configure filters="category:secure" hitsPerPage={100} /> its worked but when i try with the bool attribute this dont work what is the wrong?

https://stackoverflow.com/questions/66146951/how-can-i-filter-my-search-by-an-boolean-atrribute February 11, 2021 at 08:00AM

没有评论:

发表评论