typesense / typesense-instantsearch-adapter

A JS adapter library to build rich search interfaces with Typesense and InstantSearch.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

configurerelateditems from instantsearch working with typesense?

pixelkoduje opened this issue · comments

Description

Is working in typesense? I can't run it.
https://instantsearchjs.netlify.app/stories/js/?path=/story/basics-configurerelateditems--default

Expected Behavior

image

I tested further, I don't think it works. I get an error:
Error: 404 - Could not find a filter field named objectID in the schema.

My setting component.
image

data.hit - this is data from the component that was clicked (To open a list of similar products for viewing when clicked). Unfortunately it does not work. And in the typesense list it says that this function is working.

I'd appreciate a minimal (small example) of how to do it right, if it works. Thanks

@pixelkoduje The related widgets item does not work with Typesense (yet), since Typesense has a different way to fetch related items using vector search.

Here's an example of how to do this with Typesense:

  1. Visit https://ecommerce-store.typesense.org/
  2. Click on "Find Similar" under any product
  3. You'll see notes on how to implement it with Typesense