Re: [GENERAL] Fragments in tsearch2 headline

Поиск
Список
Период
Сортировка
От Pierre-Yves Strub
Тема Re: [GENERAL] Fragments in tsearch2 headline
Дата
Msg-id 592647410805241720i395bc8e8o770843dfce93cd1f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Fragments in tsearch2 headline  (Sushant Sinha <sushant354@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Rainer Bauer
Дата:
Сообщение: Re: Execution-time-sensitive timestamp regression tests
Следующее
От: Tom Lane
Дата:
Сообщение: Re: \df displaying volatility