Oleg Bartunov wrote:
> Catalin,
>
> what is your need ? What's wrong with this ?
>
> postgres=# select ts_headline('1 2 3 4 5 3 4 abc abc 2 3
> xyz','2'::tsquery, 'StartSel=...,StopSel=...')
> ;
> ts_headline
> -------------------------------------------
> 1 ...2... 3 4 5 3 4 abc abc ...2... 3 xyz
I think he want's something like: "1 2 3 ... abc 2 3 ..."
A few characters of context around each match and then ... between. Kind
of like grep -C.
--
Richard Huxton
Archonet Ltd