File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,18 @@ values
23
23
create index rumidx on v.test_rum using rum (a rum_tsvector_ops);
24
24
select
25
25
t,
26
- a <=> to_tsquery('english', 'beautiful | place') as rank
26
+ round( a <=> to_tsquery('english', 'beautiful | place') ) as rank
27
27
from
28
28
v.test_rum
29
29
where
30
30
a @@ to_tsquery('english', 'beautiful | place')
31
31
order by
32
32
a <=> to_tsquery('english', 'beautiful | place');
33
- t | rank
34
- ---------------------------------+---------
35
- it looks like a beautiful place | 8.22467
36
- the situation is most beautiful | 16.4493
37
- it is a beautiful | 16.4493
33
+ t | rank
34
+ ---------------------------------+------
35
+ it looks like a beautiful place | 8
36
+ the situation is most beautiful | 16
37
+ it is a beautiful | 16
38
38
(3 rows)
39
39
40
40
drop schema v cascade;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ create index rumidx on v.test_rum using rum (a rum_tsvector_ops);
28
28
29
29
select
30
30
t,
31
- a <=> to_tsquery(' english' , ' beautiful | place' ) as rank
31
+ round( a <=> to_tsquery(' english' , ' beautiful | place' ) ) as rank
32
32
from
33
33
v .test_rum
34
34
where
You can’t perform that action at this time.
0 commit comments