From: | Andreas Joseph Krogh <andreak(at)officenet(dot)no> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | 8.3 version of ts_headline |
Date: | 2007-09-14 17:52:31 |
Message-ID: | 200709141952.31917.andreak@officenet.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi.
In 8.2 this produces an error:
SELECT headline('default', 'a b c', 'c'::tsquery,
'StartSel=<span class="style1">, StopSel=</span>');
ERROR: syntax error
DETAIL: Syntax error in position 15.
while this works:
SELECT headline('default', 'a b c', 'c'::tsquery,
'StartSel=<b>, StopSel=</b>');
headline
--------------
a b <b>c</b>
(1 row)
In the modern age people use stylesheets and it seems awkward that it's not
possible to highlight headlines using stylesheets in PG. Is this intentional,
or a glitch? Is it possible to extend ts_headline to support more advanced
markup in StartSel?
--
Andreas Joseph Krogh <andreak(at)officenet(dot)no>
Senior Software Developer / Manager
------------------------+---------------------------------------------+
OfficeNet AS | The most difficult thing in the world is to |
Karenslyst Allé 11 | know how to do a thing and to watch |
PO. Box 529 Skøyen | somebody else doing it wrong, without |
0214 Oslo | comment. |
NORWAY | |
Tlf: +47 24 15 38 90 | |
Fax: +47 24 15 38 91 | |
Mobile: +47 909 56 963 | |
------------------------+---------------------------------------------+
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-09-14 17:57:49 | Re: PL/TCL Patch to prevent postgres from becoming multithreaded |
Previous Message | Gregory Stark | 2007-09-14 17:50:16 | Re: PL/TCL Patch to prevent postgres from becoming multithreaded |