Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e413ce

Browse files
committed
partially reconstruct tsvector value instead of having copy of ranking functions
1 parentf0239b5 commit0e413ce

File tree

3 files changed

+158
-203
lines changed

3 files changed

+158
-203
lines changed

‎expected/rum.out

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,12 @@ SELECT
117117
rum_ts_distance(a, to_tsquery('pg_catalog.english', 'way & (go | half)')),
118118
*
119119
FROM test_rum
120-
ORDER BY a <-> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 3;
121-
?column? | rum_ts_distance | t | a
122-
----------+-----------------+-------------------------------------------------------------------------+---------------------------------------------------------
123-
9.65659 | 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
124-
10.0905 | 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
125-
1e+20 | 1e+20 | my appreciation of you in a more complimentary way than by sending this | 'appreci':2 'complimentari':8 'send':12 'way':9
126-
(3 rows)
120+
ORDER BY a <-> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 2;
121+
?column? | rum_ts_distance | t | a
122+
----------+-----------------+---------------------------------------------------------------------+---------------------------------------------------------
123+
9.65659 | 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
124+
10.0905 | 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
125+
(2 rows)
127126

128127
INSERT INTO test_rum (t) VALUES ('foo bar foo the over foo qq bar');
129128
INSERT INTO test_rum (t) VALUES ('345 qwerty copyright');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp