Skip to content

How to do a manual search when using typsense instantsearch with Vue #202

Open
@robjbrain

Description

@robjbrain

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 from typesenseInstantsearchAdapter.searchClient

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions