Re: ts_headline - Mailing list pgsql-general

From Richard Huxton
Subject Re: ts_headline
Date
Msg-id 47BD5052.1090509@archonet.com
Whole thread Raw
In response to Re: ts_headline  (Stephen Davies <scldad@sdc.com.au>)
Responses Re: ts_headline
Re: ts_headline
List pgsql-general
Stephen Davies wrote:
> Attached is the "document" in question.
>
> Searches for "norwegian", "thesaurus" and "statement" give good results. A
> search for "database" gives the plain text from the beginning.

Seems OK here - might need to look at your configuration settings.
http://www.postgresql.org/docs/8.3/static/textsearch-debugging.html

I'll make sure I've got a clean setup here and re-run the test.


SELECT ts_headline(t, to_tsquery('database')) FROM tsearch_test;
                                               ts_headline
-------------------------------------------------------------------------------------------------------
  <b>database</b> (using a 2 KB page) to a Large File Support (LFS)
<b>database</b> (using an 8 KB page
(1 row)

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Gordon
Date:
Subject: Re: How to make update rapidly?
Next
From: Howard Wilkinson
Date:
Subject: Querying the schema for column widths - what syntax do I use?