When you want to apply filters to your search and don't want them to be displayed as facets. Some examples could include:
- Adding a search box in UI which applies to one field
- Adding a date range component to UI
Within the Searchkit config, there is a filters array which allows you to configure one or more filters for your search. Below is an example of adding a term filter to search.
With this configured, you should be able to apply a GQL query like below
and Searchkit will return all hit results that have a field type with a value of "test".
If you're using
@searchkit/client, you will be able to apply the filter like so