Re: [HACKERS] bug in ts_rank_cd

2010-12-22 Thread Sushant Sinha
Sorry for sounding the false alarm. I was not running the vanilla postgres and that is why I was seeing that problem. Should have checked with the vanilla one. -Sushant On Tue, 2010-12-21 at 23:03 -0500, Tom Lane wrote: > Sushant Sinha writes: > > There is a bug in ts_rank_cd. It does not correc

Re: [HACKERS] bug in ts_rank_cd

2010-12-21 Thread Tom Lane
Sushant Sinha writes: > There is a bug in ts_rank_cd. It does not correctly give rank when the > query lexeme is the first one in the tsvector. Hmm ... I cannot reproduce the behavior you're complaining of. You say > select ts_rank_cd(to_tsvector('english', 'abc sdd'), > plainto_tsquery('english

[HACKERS] bug in ts_rank_cd

2010-12-21 Thread Sushant Sinha
MY PREV EMAIL HAD A PROBLEM. Please reply to this one == There is a bug in ts_rank_cd. It does not correctly give rank when the query lexeme is the first one in the tsvector. Example: select ts_rank_cd(to_tsvector('english', 'abc sdd'), plainto

[HACKERS] bug in ts_rank_cd

2010-12-21 Thread Sushant Sinha
There is a bug in ts_rank_cd. It does not correctly give rank when the query lexeme is the first one in the tsvector. Example: select ts_rank_cd(to_tsvector('english', 'abc sdd'), plainto_tsquery('english', 'abc')); ts_rank_cd 0 select ts_rank_cd(to_tsvector('english'