How to add filter/query parameter to the Autocomplete query suggestions

Hi,

Is there a way to add query parameters to the query suggestions that gets returned from Autocomplete.

For example I would like the user to only get suggested results from the category he is filtered on without getting results from other categories.

I would like to see a code example if it’s possible.