Re: text search: restricting the number of parsed words in headline generation - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: text search: restricting the number of parsed words in headline generation
Date
Msg-id 20120815162103.GL25473@momjian.us
Whole thread Raw
In response to Re: text search: restricting the number of parsed words in headline generation  (Sushant Sinha <sushant354@gmail.com>)
List pgsql-hackers
This might indicate that the hlCover() item is resolved.

---------------------------------------------------------------------------

On Wed, Aug 24, 2011 at 10:08:11AM +0530, Sushant Sinha wrote:
> 
> 
>     Actually, this code seems probably flat-out wrong: won't every
>     successful call of hlCover() on a given document return exactly the same
>     q value (end position), namely the last token occurrence in the
>     document?  How is that helpful?
> 
>                            regards, tom lane
> 
> 
> There is a line that saves the computation state from the previous call and
> search only starts from there:
> 
> int         pos = *p;
> 
> 
> 

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: text search: restricting the number of parsed words in headline generation
Next
From: Bruce Momjian
Date:
Subject: Re: sha1, sha2 functions into core?