fuzzball.js icon indicating copy to clipboard operation
fuzzball.js copied to clipboard

Highlight matches?

Open punkpeye opened this issue 1 year ago • 2 comments

Is there a way to highlight matching terms?

punkpeye avatar Feb 03 '25 00:02 punkpeye

Not currently. You might be able to roll your own depending on your use case but nothing built-in, and it might or might not make sense depending on the function you're using.

nol13 avatar Feb 19 '25 03:02 nol13

Hmm maybe the token set scorers could return the intersecting terms though, it wouldn't be a huge rework to support it. It'd only work at the token level most of the functions there's only one score calculated for the whole string.

nol13 avatar Aug 20 '25 03:08 nol13