Skip to content

A way to convert Instantsearch state to Typesense payload #226

Open
@dziugas-liaudinskas

Description

@dziugas-liaudinskas

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
}

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