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
2323create index rumidx on v.test_rum using rum (a rum_tsvector_ops);
2424select
2525 t,
26- a <=> to_tsquery('english', 'beautiful | place') as rank
26+ round( a <=> to_tsquery('english', 'beautiful | place') ) as rank
2727from
2828 v.test_rum
2929where
3030 a @@ to_tsquery('english', 'beautiful | place')
3131order by
3232 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
3838(3 rows)
3939
4040drop 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);
2828
2929select
3030 t,
31- a <=> to_tsquery(' english' , ' beautiful | place' ) as rank
31+ round( a <=> to_tsquery(' english' , ' beautiful | place' ) ) as rank
3232from
3333 v .test_rum
3434where
You can’t perform that action at this time.
0 commit comments