SET client_min_messages = warning; CREATE EXTENSION IF NOT EXISTS icu_parser CASCADE; SELECT ts_headline('icu_simple', 'The best ラーメン in Tokyo', plainto_tsquery('icu_simple', 'ラーメン')); ts_headline ----------------------------------- The best ラーメン in Tokyo (1 row) SELECT ts_headline('icu_simple', '東京駅前ラーメン店', plainto_tsquery('icu_simple', 'ラーメン')); ts_headline --------------------------- 東京駅前ラーメン店 (1 row) SELECT ts_headline('icu_simple', 'ร้านกาแฟสด ใกล้สยาม', plainto_tsquery('icu_simple', 'กาแฟ')); ts_headline -------------------------- ร้านกาแฟสด ใกล้สยาม (1 row) SELECT ts_headline('icu_simple', '北京大学图书馆', plainto_tsquery('icu_simple', '图书馆'), 'StartSel=[, StopSel=]'); ts_headline -------------------- 北京大学[图书][馆] (1 row) SELECT ts_headline('icu_simple', 'one two three four five six seven eight nine ten 東京 eleven twelve thirteen', plainto_tsquery('icu_simple', '東京'), 'MaxWords=5, MinWords=2'); ts_headline -------------------- 東京 eleven (1 row) SELECT ts_headline('icu_simple', 'alpha 東京 beta gamma delta epsilon zeta eta theta 東京 iota', plainto_tsquery('icu_simple', '東京'), 'MaxFragments=2, MaxWords=3, MinWords=1, FragmentDelimiter=" | "'); ts_headline ------------------------------------------------- alpha 東京 beta | theta 東京 iota (1 row)