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

From Tom Lane
Subject Re: [GENERAL] Fragments in tsearch2 headline
Date
Msg-id 26620.1239672298@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Fragments in tsearch2 headline  (Sushant Sinha <sushant354@gmail.com>)
List pgsql-hackers
Sushant Sinha <sushant354@gmail.com> writes:
> Headline generation uses hlCover to get fragments in text with *all*
> query items. In case there is no such fragment, it does not return
> anything.

> What you are asking will either require returning *maximally* matching
> covers or handling it as a separate case.

Efficiently being useless is still useless --- a headline selection
function needs to be robust, not fragile, and not doing anything useful
for a partial match sounds pretty fragile to me.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] Fragments in tsearch2 headline
Next
From: Sushant Sinha
Date:
Subject: Re: [GENERAL] Fragments in tsearch2 headline