Skip site navigation (1) Skip section navigation (2)

Re: Fragments in tsearch2 headline

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: sushant354(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Fragments in tsearch2 headline
Date: 2008-03-31 12:36:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
> The patch takes into account the corner case of overlap. Here is the
> code for that
> // start check
> if (!startHL && *currentpos >= startpos)
>        startHL = 1;
> The headline generation will not start until currentpos has gone past
> startpos. 

> You can also check how this headline function is working at my website
> Some example queries are murder, freedom of speech,
> freedom of press etc.
Looks good.

> Should I develop the patch for the current cvs head of postgres?

I'd like to commit your patch, but if it should be:
  - for current HEAD
  - as extension of existing ts_headline.

Teodor Sigaev                                   E-mail: teodor(at)sigaev(dot)ru

In response to


pgsql-general by date

Next:From: Roberts, JonDate: 2008-03-31 12:54:04
Subject: Re: Using tables in other PostGreSQL database
Previous:From: Pavan DeolaseeDate: 2008-03-31 12:34:26
Subject: Re: ANALYZE getting dead tuple count hopelessly wrong

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group