-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to do a manual search when using typsense instantsearch with Vue #202
Comments
To access the |
@jasonbosco i'm not sure how that helps without an example. It seems like you would need the helper to call the searchFunction method rather than accessing the helper via it? I've found that you can use Here's an example:
|
Description
I would like to do a manual search when clicking somewhere else on a page such as a button.
Steps to reproduce
The instructions given by algolia are to use:
searchClient.helper.setQuery('My Term').search();
Expected Behavior
I expect a search to be performed for "My Term"
Actual Behavior
I get the error
Uncaught TypeError: Cannot read properties of undefined (reading 'setQuery')
This is because
helper
is null in the object returned fromtypesenseInstantsearchAdapter.searchClient
The text was updated successfully, but these errors were encountered: