File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -759,25 +759,25 @@ SELECT to_tsquery('english', '2 <-> (s <-> (1 <-> a))');
759
759
'2' <-> '1'
760
760
(1 row)
761
761
762
- SELECT to_tsquery('foo <-> (a <-> (the <-> bar))');
762
+ SELECT to_tsquery('english', ' foo <-> (a <-> (the <-> bar))');
763
763
to_tsquery
764
764
-----------------
765
765
'foo' <-> 'bar'
766
766
(1 row)
767
767
768
- SELECT to_tsquery('((foo <-> a) <-> the) <-> bar');
768
+ SELECT to_tsquery('english', ' ((foo <-> a) <-> the) <-> bar');
769
769
to_tsquery
770
770
-----------------
771
771
'foo' <3> 'bar'
772
772
(1 row)
773
773
774
- SELECT to_tsquery('foo <-> a <-> the <-> bar');
774
+ SELECT to_tsquery('english', ' foo <-> a <-> the <-> bar');
775
775
to_tsquery
776
776
-----------------
777
777
'foo' <3> 'bar'
778
778
(1 row)
779
779
780
- SELECT phraseto_tsquery('PostgreSQL can be extended by the user in many ways');
780
+ SELECT phraseto_tsquery('english', ' PostgreSQL can be extended by the user in many ways');
781
781
phraseto_tsquery
782
782
-----------------------------------------------------------------------
783
783
( ( ( 'postgresql' <3> 'extend' ) <3> 'user' ) <2> 'mani' ) <-> 'way'
@@ -1462,7 +1462,7 @@ create temp table phrase_index_test(fts tsvector);
1462
1462
insert into phrase_index_test values('A fat cat has just eaten a rat.');
1463
1463
create index phrase_index_test_idx on phrase_index_test using gin(fts);
1464
1464
set enable_seqscan = off;
1465
- select * from phrase_index_test where fts @@ phraseto_tsquery('fat cat');
1465
+ select * from phrase_index_test where fts @@ phraseto_tsquery('english', ' fat cat');
1466
1466
fts
1467
1467
-------------------------------------------------
1468
1468
'A' 'a' 'cat' 'eaten' 'fat' 'has' 'just' 'rat.'
Original file line number Diff line number Diff line change @@ -169,10 +169,10 @@ SELECT to_tsquery('english', '2 <-> (s <-> (a <-> 1))');
169
169
SELECT to_tsquery(' english' , ' 2 <-> ((1 <-> a) <-> s)' );
170
170
SELECT to_tsquery(' english' , ' 2 <-> (s <-> (1 <-> a))' );
171
171
172
- SELECT to_tsquery(' foo <-> (a <-> (the <-> bar))' );
173
- SELECT to_tsquery(' ((foo <-> a) <-> the) <-> bar' );
174
- SELECT to_tsquery(' foo <-> a <-> the <-> bar' );
175
- SELECT phraseto_tsquery(' PostgreSQL can be extended by the user in many ways' );
172
+ SELECT to_tsquery(' english ' , ' foo <-> (a <-> (the <-> bar))' );
173
+ SELECT to_tsquery(' english ' , ' ((foo <-> a) <-> the) <-> bar' );
174
+ SELECT to_tsquery(' english ' , ' foo <-> a <-> the <-> bar' );
175
+ SELECT phraseto_tsquery(' english ' , ' PostgreSQL can be extended by the user in many ways' );
176
176
177
177
178
178
SELECT ts_rank_cd(to_tsvector(' english' , '
@@ -485,5 +485,5 @@ create temp table phrase_index_test(fts tsvector);
485
485
insert into phrase_index_test values (' A fat cat has just eaten a rat.' );
486
486
create index phrase_index_test_idx on phrase_index_test using gin(fts);
487
487
set enable_seqscan = off;
488
- select * from phrase_index_test where fts @@ phraseto_tsquery(' fat cat' );
488
+ select * from phrase_index_test where fts @@ phraseto_tsquery(' english ' , ' fat cat' );
489
489
set enable_seqscan = on ;
You can’t perform that action at this time.
0 commit comments