mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
1 Fix problem with lost precision in rank with OR-ed lexemes
2 Allow tsquery_in to input void tsquery: resolve dump/restore problem with tsquery
This commit is contained in:
@ -746,21 +746,21 @@ select count(*) FROM test_tsvector WHERE a @@ to_tsquery('copyright');
|
||||
(1 row)
|
||||
|
||||
select rank(' a:1 s:2C d g'::tsvector, 'a | s');
|
||||
rank
|
||||
------
|
||||
0.28
|
||||
rank
|
||||
-----------
|
||||
0.0911891
|
||||
(1 row)
|
||||
|
||||
select rank(' a:1 s:2B d g'::tsvector, 'a | s');
|
||||
rank
|
||||
------
|
||||
0.46
|
||||
rank
|
||||
----------
|
||||
0.151982
|
||||
(1 row)
|
||||
|
||||
select rank(' a:1 s:2 d g'::tsvector, 'a | s');
|
||||
rank
|
||||
------
|
||||
0.19
|
||||
rank
|
||||
-----------
|
||||
0.0607927
|
||||
(1 row)
|
||||
|
||||
select rank(' a:1 s:2C d g'::tsvector, 'a & s');
|
||||
|
Reference in New Issue
Block a user