instantsearch.jstypesense

Typesense query weights with instantsearch.js adapter


I'm looking to weight different fields in my typesense search ranking. With a typesense client, my understanding is that I'd use query_by_weights.

But I'm using the react instantsearch adapter. How do I set query weights there?


Solution

  • You can set query_by_weights inside additionalSearchParameters when you instantiate the typesense-instantsearch-adapter.