nextapps-de / flexsearch

Next-Generation full text search library for Browser and Node.js
Apache License 2.0
12.53k stars 491 forks source link

Provide indices position of a search match #357

Open BernhardBehrendt opened 2 years ago

BernhardBehrendt commented 2 years ago

Is it somehow possible or a feasible option to provide also the position of a match that was was found? It could help me to highlight matches on UI Level. Actually I just use Regex for highlighting matches and there's is always a kind of loss.

Also found this Feature Request but it's pretty old actually: https://github.com/nextapps-de/flexsearch/issues/136

Thanks. Also for hints how to solve something like that in a more stale way than RegExp