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

From Sushant Sinha
Subject Re: text search: restricting the number of parsed words in headline generation
Date
Msg-id CAJqjnSfeeG7UCAGDMSKT1P-gg02DUHk9=ketpnmxDmM7iTsycw@mail.gmail.com
Whole thread
In response to Re: text search: restricting the number of parsed words in headline generation  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: text search: restricting the number of parsed words in headline generation
List pgsql-hackers


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;


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: text search: restricting the number of parsed words in headline generation
Next
From: Tom Lane
Date:
Subject: Re: Another extensions bug