From: | Asher Snyder <asnyder(at)noloh(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Ellipses around result fragment of ts_headline |
Date: | 2009-02-14 20:13:00 |
Message-ID: | 009701c98ee0$a2ce3010$e86a9030$@com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Sushant Sinha | 2009-02-14 21:06:30 | Re: Ellipses around result fragment of ts_headline |
Previous Message | Robert Treat | 2009-02-14 16:25:00 | Re: pg_restore --multi-thread |