Open david-allison opened 3 years 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.
Highlighting likely won't be perfect, but we can make it a lot better: