Rowles.LeanCorpus.Search.Highlighting
Classes
FieldQuery
Flattens a Query tree into a per-field map of
(term to weighted phrase positions)for use by TermVectorHighlighter.
Highlighter
Extracts text snippets from stored fields with matching terms highlighted. Query term occurrences are located directly in the text via case-insensitive substring search with word-boundary validation, avoiding the cost of full re-analysis through the standard analyser pipeline.
HybridHighlighter
Cascading highlighter that selects the best strategy based on available data.
PostingsHighlighter
Extracts highlighted text snippets using term vector offsets from the index. Unlike Highlighter, this does not re-analyse the stored text; it uses pre-computed start/end character offsets from term vectors to locate query terms in the original field text.
TermVectorHighlighter
Extracts highlighted text snippets using pre-computed term vector offsets and a FieldQuery that carries per-term phrase position constraints.
Interfaces
IHighlighter
Unified contract for extracting highlighted text fragments from stored fields.