To pass on raw search parameters to the Algolia API, you will need to use the SearchState class in the State parameter of your HitsSearcher
component.
The following code snippet shows how to pass on the userToken
as a search parameter. This is especially useful when configuring and implementing AI Personalization.
final hitsSearcher = HitsSearcher.create(
applicationID: 'YourAppId',
apiKey: 'YourSearchOnlyApiKey',
state: const SearchState(userToken: 'yourUserToken'),
);