search

ts_headline

Selects and marks matching document excerpts. Output is not sanitized HTML; escape or sanitize before rendering untrusted text.

Formal Syntax & Structure

sql syntaxsql
ts_headline([config,] document, query [, options])

Working Example

Example Snippetsql
SELECT ts_headline('simple','sql guide',to_tsquery('simple','sql'),'StartSel=[, StopSel=], HighlightAll=true');
SQL Reference