Remove claim that ts_headline knows how to generate multiple ellipsis-separated
excerpts of a document. That's clearly desirable, but the functionality is not there yet.
This commit is contained in:
parent
3fe266207b
commit
f9e83a5588
@ -1,4 +1,4 @@
|
|||||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.28 2007/10/27 16:01:08 tgl Exp $ -->
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.29 2007/10/29 01:55:11 tgl Exp $ -->
|
||||||
|
|
||||||
<chapter id="textsearch">
|
<chapter id="textsearch">
|
||||||
<title id="textsearch-title">Full Text Search</title>
|
<title id="textsearch-title">Full Text Search</title>
|
||||||
@ -1040,7 +1040,7 @@ ORDER BY rank DESC LIMIT 10;
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
<function>ts_headline</function> accepts a document along
|
<function>ts_headline</function> accepts a document along
|
||||||
with a query, and returns one or more ellipsis-separated excerpts from
|
with a query, and returns an excerpt from
|
||||||
the document in which terms from the query are highlighted. The
|
the document in which terms from the query are highlighted. The
|
||||||
configuration to be used to parse the document can be specified by
|
configuration to be used to parse the document can be specified by
|
||||||
<replaceable>config</replaceable>; if <replaceable>config</replaceable>
|
<replaceable>config</replaceable>; if <replaceable>config</replaceable>
|
||||||
@ -1094,24 +1094,27 @@ StartSel=<b>, StopSel=</b>, MaxWords=35, MinWords=15, ShortWord=3, H
|
|||||||
For example:
|
For example:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
SELECT ts_headline('ts_headline accepts a document along
|
SELECT ts_headline('The most common type of search
|
||||||
with a query, and returns one or more ellipsis-separated excerpts from
|
is to find all documents containing given query terms
|
||||||
the document in which terms from the query are highlighted.',
|
and return them in order of their similarity to the
|
||||||
to_tsquery('ellipsis & term'));
|
query.', to_tsquery('query & similarity'));
|
||||||
ts_headline
|
ts_headline
|
||||||
--------------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
<b>ellipsis</b>-separated excerpts from
|
given <b>query</b> terms
|
||||||
the document in which <b>terms</b> from the query are highlighted.
|
and return them in order of their <b>similarity</b> to the
|
||||||
|
<b>query</b>.
|
||||||
|
|
||||||
SELECT ts_headline('ts_headline accepts a document along
|
SELECT ts_headline('The most common type of search
|
||||||
with a query, and returns one or more ellipsis-separated excerpts from
|
is to find all documents containing given query terms
|
||||||
the document in which terms from the query are highlighted.',
|
and return them in order of their similarity to the
|
||||||
to_tsquery('ellipsis & term'),
|
query.',
|
||||||
|
to_tsquery('query & similarity'),
|
||||||
'StartSel = <, StopSel = >');
|
'StartSel = <, StopSel = >');
|
||||||
ts_headline
|
ts_headline
|
||||||
---------------------------------------------------------------
|
-------------------------------------------------------
|
||||||
<ellipsis>-separated excerpts from
|
given <query> terms
|
||||||
the document in which <terms> from the query are highlighted.
|
and return them in order of their <similarity> to the
|
||||||
|
<query>.
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user