Section navigation

Public namespace Rowles.LeanCorpus.Search.Highlighting

Classes

Public class FieldQuery

Flattens a Query tree into a per-field map of (term to weighted phrase positions) for use by TermVectorHighlighter.

Public class 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.

Public class HybridHighlighter

Cascading highlighter that selects the best strategy based on available data.

Public class 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.

Public class TermVectorHighlighter

Extracts highlighted text snippets using pre-computed term vector offsets and a FieldQuery that carries per-term phrase position constraints.

Interfaces

Public interface IHighlighter

Unified contract for extracting highlighted text fragments from stored fields.