Skip to content
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

A way to convert Instantsearch state to Typesense payload #226

Open
dziugas-liaudinskas opened this issue Dec 12, 2024 · 0 comments
Open

Comments

@dziugas-liaudinskas
Copy link

I want to let users do a search based on the last saved search state on a page without any Instantsearch widgets. Part of saving the previous search can be done but I cannot find a way to convert that to a Typesense-compatible payload so that I could perform Typesense search. I found this old discussion but as I understand it didn't lead to anything.

Is there a way to access the SearchRequestAdapter and _buildSearchParameters methods? Or maybe there is a different way?

I'm using React Instantsearch and the state that I'm trying to use looks something like this:

{
    "currentPrice": "34900:196300",
    "listType": "vertical",
    "q": "mouse",
    "refinementList": {
        "filter_1_facet": [
            "DELL"
        ]
    },
    "sortBy": "priceDesc",
    "t": 60
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant