| Previous | Next |
Function headlineReturns a substring within a string that matches a search query. Matching search words within the substring are surrounded by '<b>' and '</b>' by default. headline([configuration OID | TEXT, ] txt TEXT, tsq TSQUERY [, options TEXT]) RETURNS TEXT
select set_curcfg('default_english');
set_curcfg
------------
(1 row)
SELECT file,
headline(body, to_tsquery('updateable & views'),
'StartSel=<b>, StopSel=</b>, MaxWords=11, MinWords=10, ShortWord=3')
FROM postgresql_manual
WHERE ts_vec @@ to_tsquery('updateable & views')
ORDER BY rank(ts_vec, to_tsquery('updateable & views')) DESC
LIMIT 3;
file | headline
---------------------+--------------------------------------------------------------------------------------------
sql-createview.html |view. You can get the effect of an updatable view
sql-createrule.html |updatable view by defining ON INSERT , ON UPDATE , and ON DELETE
infoschema-views.html|view) check_option character_data Applies to a feature not available
(3 rows)
|