Clearing Selected Facets On Query Change

Hi there,

I have a kotlin android project and I’m trying to clear selected facets on query change but didn’t have any luck so far, I have looked in the documentation but the examples didn’t mention anything about clearing on query change or when u have a FilterState() with no parameters in the constructor … so could u help please?

I had a look at the searcher documentation Searcher | Android | API parameters | API Reference | Algolia Documentation and it seems there are event hooks you can bind to in order to react to the search operations. Would it be possible to clear your FilterState in one of these hooks ?