@@ -114,12 +114,13 @@ SELECT rum_ts_distance(a, to_tsquery('pg_catalog.english', 'way & (go | half)'))
114
114
115
115
SELECT rum_ts_distance(a, to_tsquery('pg_catalog.english', 'way & (go | half)')), *
116
116
FROM test_rum
117
- ORDER BY a <-> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 2;
118
- rum_ts_distance | t | a
119
- -----------------+---------------------------------------------------------------------+---------------------------------------------------------
120
- 9.65659 | thinking--“to go or not to go?” We are this far on the way. Reached | 'far':11 'go':3,7 'reach':15 'think':1 'way':14
121
- 10.0905 | itself. Put on your “specs” and look at the castle, half way up the | 'castl':10 'half':11 'look':7 'put':2 'spec':5 'way':12
122
- (2 rows)
117
+ ORDER BY a <-> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 3;
118
+ rum_ts_distance | t | a
119
+ -----------------+-------------------------------------------------------------------------+---------------------------------------------------------
120
+ 9.65659 | thinking--“to go or not to go?” We are this far on the way. Reached | 'far':11 'go':3,7 'reach':15 'think':1 'way':14
121
+ 10.0905 | itself. Put on your “specs” and look at the castle, half way up the | 'castl':10 'half':11 'look':7 'put':2 'spec':5 'way':12
122
+ 1e+20 | my appreciation of you in a more complimentary way than by sending this | 'appreci':2 'complimentari':8 'send':12 'way':9
123
+ (3 rows)
123
124
124
125
INSERT INTO test_rum (t) VALUES ('foo bar foo the over foo qq bar');
125
126
INSERT INTO test_rum (t) VALUES ('345 qwerty copyright');