typesense / typesense-instantsearch-adapter

A JS adapter library to build rich search interfaces with Typesense and InstantSearch.js
MIT License
361 stars 62 forks source link

Add infix parameter #168

Closed carderne closed 1 year ago

carderne commented 1 year ago

Description

I'm using Typesense's infix feature but can't see a way to use it with the adapter.

Expected Behavior

Would expect the parameters to look something like this (copying from README):

  additionalSearchParameters: {
    query_by: "name,description,categories",
    infix: "always,off,fallback",
  },
jasonbosco commented 1 year ago

That should work... Did you run into any issues? If so, could you share the error you see?

carderne commented 1 year ago

Sorry I must have got confused between trying infix and preset.

I grep'd for infix in the repo and didn't find anything so assumed (incorrectly) that I wasn't being stupid. :)

jasonbosco commented 1 year ago

The types for the search params mostly come directly from typesense-js which is why this adapter repo doesn't have the word infix in it.