tsearch2 headline options

From: "Jan Sunavec" <jan(dot)sunavec(at)gmail(dot)com>
To:
Cc: pgsql-general(at)postgresql(dot)org
Subject: tsearch2 headline options
Date: 2008-01-02 17:03:48
Message-ID: op.t4ba0mlsc8yns6@akela-pc.chello.sk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all

I have following problem when I use this

select headline('asd asd asd asd asd asd asd asd asd asd asd asd more more
more more more more more', to_tsquery('asd'), '');

I got this

"<b>asd</b> <b>asd</b> <b>asd</b> <b>asd</b> <b>asd</b> <b>asd</b>
<b>asd</b> <b>asd</b> <b>asd</b> <b>asd</b> <b>asd</b> <b>asd</b> more
more more"

So result is shorted than original text. I tryed set MinWords and
MaxWords. But it doesn't help me. So question is how can I get original
text?

Best regards

John

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Browne 2008-01-02 17:19:52 Re: Hinting the planner
Previous Message Vincent Bernat 2008-01-02 16:56:18 tablefunc and crosstab