This limits our ability to execute phrase queries or span queries.
Additionally, supporting positions and offsets should make highlighting easier.
To highlight we should be able to create a single doc index with position and offsets (or use them in the main index if available) and use that to score the doc's terms with the query to determine what parts of the doc to highlight.
(https://lucidworks.com/post/lucene-highlighter/)
Currently we just track term counts.
This limits our ability to execute phrase queries or span queries.
Additionally, supporting positions and offsets should make highlighting easier. To highlight we should be able to create a single doc index with position and offsets (or use them in the main index if available) and use that to score the doc's terms with the query to determine what parts of the doc to highlight. (https://lucidworks.com/post/lucene-highlighter/)