Re: TS: Limited cover density ranking

Любен Каравелов <karavelov@mail.bg>

From: karavelov@mail.bg
To: pgsql-hackers@postgresql.org
Date: 2012-01-27T16:10:14Z
Lists: pgsql-hackers

Attachments

And here is the patch, that I forgot to attach
> Hello,
> 
> I have developed a variation of cover density ranking functions that counts only covers that are lesser than a specified limit. It is useful for finding combinations of terms that appear nearby one another. Here is an example of usage:

...

> 
> Find attached a path agains 9.1.2 sources. I preferred to make a patch, not a separate extension because it is only 1 statement change in calc_rank_cd function. If I have to make an extension a lot of code would be duplicated between backend/utils/adt/tsrank.c and the extension.
> 
--
Luben Karavelov