david-allison / manx-corpus-search

MIT License
3 stars 1 forks source link

[enhancement] Improve highlighting #40

Open david-allison opened 3 years ago

david-allison commented 3 years ago

Highlighting likely won't be perfect, but we can make it a lot better:

david-allison commented 1 year ago

ref: https://github.com/david-allison/manx-corpus-search/commit/b1d8e0b860cff2cd5fbab8e8830c6a6e2f4e2c41

We'll want unit tests at the very least. I suspect we'll only go with 'fuzzy' highlighting rather than trying to replicate Lucene's tokenisation.