> Why are you writing the number 5 as "4|1" (4 "bitwise or" 1) in Test 3?
 
According to the reference: "The integer option controls several behaviors, so it is a bit mask: you can specify one or more behaviors using | (for example, 2|4)".
 
The task is as follows:
1) use normalization option 4 (document rank is divided by the average harmonic distance between blocks)
2) in test 3, get the result Y < X
 
How to solve this problem ?
 
 
 
26.04.2022, 00:18, "David G. Johnston" <david.g.johnston@gmail.com>:
On Mon, Apr 25, 2022 at 2:03 PM PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      17468
Logged by:          vicreal
Email address:      vicreal@yandex.ru
PostgreSQL version: 13.1
Operating system:   Debian 10
Description:       
 
 
Test 3
SELECT ts_rank_cd(to_tsvector('This function calculates the coverage
density'), to_tsquery('function | calculates'), 4|1); -- 0.062 (X)
SELECT ts_rank_cd(to_tsvector('This function calculates the coverage
density'), to_tsquery('function'), 4|1);              -- 0.062 (Y)

How it should be:
1) In test 3 rank Y should be smaller, than rank X (as in test 2).

2) How get difference ranks Y < X when using normalization variant 4 ?
 
Why are you writing the number 5 as "4|1" (4 "bitwise or" 1) in Test 3?
 
David J.