1
0
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:
Teodor Sigaev
2005-10-28 13:05:06 +00:00
parent fbff2e9607
commit 21b748e76a
3 changed files with 49 additions and 23 deletions

View File

@ -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');