Highlight preserves the original text and merges overlapping matches. Rune
positions keep Croatian letters and case mappings with different byte lengths
from corrupting the rendered text. Fragments are plain text, never HTML.
type Query struct {
Terms []string PrimaryPattern string RemainingPatterns []string}
Query contains literal, case-insensitive substrings, all of which must match.
PrimaryPattern is an explicit ILIKE predicate so PostgreSQL can use pg_trgm;
RemainingPatterns are additional filters and may contain shorter terms.