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

Grouped Hits not compatible with react-instantsearch Highlight element #184

Open RBSUS opened 10 months ago

RBSUS commented 10 months ago

Description

The terms that are expected to be highlighted from the query string are not highlighted when I pass a hit from _grouped_hits into the react-instant Highlight element. The top level hit works fine as the matched query string appears highlighted, yet the hits within _grouped_hits instead display the matched term wrapped in a new string 'ais_highlight'

Expected Behavior

image

Actual Behavior

image

Metadata

"typesense": "^1.0.2",
"typesense-instantsearch-adapter": "^2.7.1",
"react-instantsearch": "^7.0.1",

OS: Windows

jasonbosco commented 10 months ago

I just tested this in a demo project and it seems to work fine for me.

Could you share a simple project that replicates the issue?