Re: [GENERAL] Fragments in tsearch2 headline - Mailing list pgsql-hackers

From Pierre-Yves Strub
Subject Re: [GENERAL] Fragments in tsearch2 headline
Date
Msg-id 592647410805241720i395bc8e8o770843dfce93cd1f@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Fragments in tsearch2 headline  (Sushant Sinha <sushant354@gmail.com>)
List pgsql-hackers
On Sat, May 24, 2008 at 11:18 PM, Sushant Sinha <sushant354@gmail.com> wrote:

> Does this mean we want a unified function ts_headline and we trigger the
> fragments if NumFragments is specified? It seems that introducing a new
> function which can take configuration OID, or name is complex as there
> are so many functions handling these issues in wparser.c.
>
> If this is true then we need to just  add marking of headline words in
> prsd_headline. Otherwise we will need another prsd_headline_with_covers
> function.

I think that we could merge down the two functions using a default
cover of the whole text when NumCovers if missing. I started writing
the function. The only missing information is, as you stated, the
missing posititions in HeadlineParsedText.


pgsql-hackers by date:

Previous
From: Rainer Bauer
Date:
Subject: Re: Execution-time-sensitive timestamp regression tests
Next
From: Tom Lane
Date:
Subject: Re: \df displaying volatility