Fragments in tsearch2 headline - Mailing list pgsql-general

From Catalin Marinas
Subject Fragments in tsearch2 headline
Date
Msg-id b0943d9e0710241413t7e2149c5ud7f11cd49ca903de@mail.gmail.com
Whole thread Raw
Responses Re: Fragments in tsearch2 headline  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

(I first posted it via google groups and realised that I have to be
subscribed; now posting directly)

I searched the list but couldn't find  anyone raising the issue (or it
might simply be my way of using the tool).

I'd like to search through some text documents for words and generate
headlines. The search works fine but, if the words are far apart in
the document, the headline only highlights one of the words. Enlarging
the headline  with Min/MaxWords is not an option as I have limited
space for displaying it.

Is there an easy way to generate a headline from separate fragments
containing the search words and maybe separated by "..."? An option is
to generate separate headlines and concatenate them before displaying
(with a problem when the words are in the same fragment). Another
option would be to somehow get the found words position in the
document (anyone knows how?) and generate the headline myself.

Any other ideas?

Thanks.

--
Catalin

pgsql-general by date:

Previous
From: Erik Jones
Date:
Subject: GRANT error
Next
From: Guy Rouillier
Date:
Subject: Re: Install plJava