Ellipses around result fragment of ts_headline - Mailing list pgsql-hackers

From Asher Snyder
Subject Ellipses around result fragment of ts_headline
Date
Msg-id 009701c98ee0$a2ce3010$e86a9030$@com
Whole thread Raw
Responses Re: Ellipses around result fragment of ts_headline  (Sushant Sinha <sushant354@gmail.com>)
List pgsql-hackers
It would be very useful if there were an option to have ts_headline append
ellipses before or after a result fragement based on the position of the
fragment in the source document. For instance, when running ts_headline(doc,
query) it will correctly return a fragment with words highlighted, however,
there's no easy way to determine whether this returned fragment is at the
beginning or end of the original doc, and add the necessary ellipses. 

Searches such as postgresql.org ALWAYS add ellipses before or after the
fragment regardless of whether or not ellipses are warranted. In my opinion
always adding ellipses to the fragment is deceptive to the user, in many of
my search result cases, the fragment is at the beginning of the doc, and
would confuse the user to always see ellipses. So you can see how useful the
feature described above would be beneficial to the accuracy of the search
result fragment.






pgsql-hackers by date:

Previous
From: Robert Treat
Date:
Subject: Re: pg_restore --multi-thread
Next
From: Sushant Sinha
Date:
Subject: Re: Ellipses around result fragment of ts_headline