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

Problems when using AisHiearchicalMenu #176

Open anders2410 opened 1 year ago

anders2410 commented 1 year ago

Description

There are problems with 'typesense-instantsearch-adapter' when using the AisHiearchicalMenu. When I have added more lvls in the attributes, than there are actual lvls in the data, I get errors in the console. When using it natively with Algolia it works, but when using the Typesense adapter problems occur.

Steps to reproduce

Create an index which can be used with AisHiearchicalMenu, and add some lvls to the 'attributes'.

image

When clicking on the deepest link in the hierarchy, in this case "Trådløse dørklokker", it will give an error in the console. In this example, all of the products in the index have at most 3 lvls. So "lvl0", "lvl1" and "lvl2".

image image

Expected Behavior

That I'm able to select the deepest link without getting an error.

Actual Behavior

Gets an error when selecting the deepest link.

Metadata

vue-instantsearch: 4.10.4 typesense-instantsearch-adapter: 2.7

OS: Windows 11

jasonbosco commented 1 year ago

Could you share your collections schema?