Skip to content

Provide an example of instantSearch with a semantic slider #1395

@tacman

Description

@tacman

InstantSearch has a lot of predefined fields, making it easy to configure a very attractive search interface to Meilisearch.

I'd like to integrate Semantic Search, but I can't figure out where to put the semantic ratio slider, and was hoping to see an example. Ideally, the results would change as the slider moves, like every other element.

For example, I want to search the Jeopardy database for musical questions, not just search for guitar and violin etc.

https://packages.survos.com/index/dtdemo_Jeopardy?class=grid-4

If there's not a built-in way already, I'm sure I can code up a slider and have the javascript listen for a change, but then what do I do to both pass the sematic ratio settings and how do I trigger the search itself?

Probably search.start()?

This is probably a simple question, I've gotten lazy because InstantSearch makes it so easy!

I want to add the sematic ratio slider to the right of the search here:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions