Re: Fragments in tsearch2 headline - Mailing list pgsql-general

From Richard Huxton
Subject Re: Fragments in tsearch2 headline
Date
Msg-id 47270FE5.4070102@archonet.com
Whole thread Raw
In response to Re: Fragments in tsearch2 headline  (Oleg Bartunov <oleg@sai.msu.su>)
Responses Re: Fragments in tsearch2 headline  ("Catalin Marinas" <catalin.marinas@gmail.com>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Fragments in tsearch2 headline
Next
From: "Filip Rembiałkowski"
Date:
Subject: Re: print command in sproc