algolia / instantsearch

⚑️ Libraries for building performant and instant search and recommend experiences with Algolia. Compatible with JavaScript, TypeScript, React and Vue.

Home Page:https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: incorrect highlight with full-width characters

shigma opened this issue Β· comments

commented

πŸ› Current behavior

image

I searched with the 2-character word "ζ΅‹θ―•", but got 5 characters highlighted.

πŸ” Steps to reproduce

  1. go to the page below
  2. search "ζ΅‹θ―•"
  3. see the incorrect highlight

Live reproduction

https://koishi.chat

πŸ’­ Expected behavior

Only "ζ΅‹θ―•" should be hightlighted.

Package version

vue-instantsearch 4.7.2

Operating system

not relavent

Browser

not relavent

Code of Conduct

  • I agree to follow this project's Code of Conduct

You've marked this issue as closed, did you find out what was causing it? I believe it would be the actual engine returning those highlights, if they happen consistently. Possibly synonyms are also involved?

commented

Yes. It seems an issue from meilisearch. Their matchesInfo contains byte length instead of character length. So I'll be tracking this issue on their side.