1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.40 2007/12/13 06:32:47 tgl Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.41 2008/03/04 03:17:18 momjian Exp $ -->
2
2
3
3
<chapter id="textsearch">
4
4
<title id="textsearch-title">Full Text Search</title>
@@ -1102,7 +1102,7 @@ StartSel=<b>, StopSel=</b>, MaxWords=35, MinWords=15, ShortWord=3, H
1102
1102
For example:
1103
1103
1104
1104
<programlisting>
1105
- SELECT ts_headline('The most common type of search
1105
+ SELECT ts_headline('english', ' The most common type of search
1106
1106
is to find all documents containing given query terms
1107
1107
and return them in order of their similarity to the
1108
1108
query.', to_tsquery('query & similarity'));
@@ -1112,7 +1112,7 @@ query.', to_tsquery('query & similarity'));
1112
1112
and return them in order of their <b>similarity</b> to the
1113
1113
<b>query</b>.
1114
1114
1115
- SELECT ts_headline('The most common type of search
1115
+ SELECT ts_headline('english', ' The most common type of search
1116
1116
is to find all documents containing given query terms
1117
1117
and return them in order of their similarity to the
1118
1118
query.',
@@ -1135,8 +1135,8 @@ query.',
1135
1135
example:
1136
1136
1137
1137
<programlisting>
1138
- SELECT id, ts_headline(body,q), rank
1139
- FROM (SELECT id, body, q, ts_rank_cd(ti,q) AS rank
1138
+ SELECT id, ts_headline(body, q), rank
1139
+ FROM (SELECT id, body, q, ts_rank_cd(ti, q) AS rank
1140
1140
FROM apod, to_tsquery('stars') q
1141
1141
WHERE ti @@ q
1142
1142
ORDER BY rank DESC LIMIT 10) AS foo;
0 commit comments