Fragments in tsearch2 headline

From: "Catalin Marinas" <catalin(dot)marinas(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Fragments in tsearch2 headline
Date: 2007-10-24 21:13:53
Message-ID: b0943d9e0710241413t7e2149c5ud7f11cd49ca903de@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guy Rouillier 2007-10-25 00:15:33 Re: Install plJava
Previous Message Erik Jones 2007-10-24 21:10:44 GRANT error