From 2872adf8d685b4e5821f9ec57d20d6bb26641c91 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 4 Mar 2008 03:17:26 +0000 Subject: [PATCH] Show example of ts_headline() using a configuration name. --- doc/src/sgml/textsearch.sgml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/textsearch.sgml b/doc/src/sgml/textsearch.sgml index f70dae65ff..9d3a1b26c4 100644 --- a/doc/src/sgml/textsearch.sgml +++ b/doc/src/sgml/textsearch.sgml @@ -1102,7 +1102,7 @@ StartSel=<b>, StopSel=</b>, MaxWords=35, MinWords=15, ShortWord=3, H For example: -SELECT ts_headline('The most common type of search +SELECT ts_headline('english', 'The most common type of search is to find all documents containing given query terms and return them in order of their similarity to the query.', to_tsquery('query & similarity')); @@ -1112,7 +1112,7 @@ query.', to_tsquery('query & similarity')); and return them in order of their <b>similarity</b> to the <b>query</b>. -SELECT ts_headline('The most common type of search +SELECT ts_headline('english', 'The most common type of search is to find all documents containing given query terms and return them in order of their similarity to the query.', @@ -1135,8 +1135,8 @@ query.', example: -SELECT id, ts_headline(body,q), rank -FROM (SELECT id, body, q, ts_rank_cd(ti,q) AS rank +SELECT id, ts_headline(body, q), rank +FROM (SELECT id, body, q, ts_rank_cd(ti, q) AS rank FROM apod, to_tsquery('stars') q WHERE ti @@ q ORDER BY rank DESC LIMIT 10) AS foo; -- 2.39.5