Bug: incorrect highlight with full-width characters
shigma opened this issue Β· comments
π Current behavior
I searched with the 2-character word "ζ΅θ―", but got 5 characters highlighted.
π Steps to reproduce
- go to the page below
- search "ζ΅θ―"
- see the incorrect highlight
Live reproduction
π 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?
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.