File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 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))');
759759 '2' <-> '1'
760760(1 row)
761761
762- SELECT to_tsquery('foo <-> (a <-> (the <-> bar))');
762+ SELECT to_tsquery('english', ' foo <-> (a <-> (the <-> bar))');
763763 to_tsquery
764764-----------------
765765 'foo' <-> 'bar'
766766(1 row)
767767
768- SELECT to_tsquery('((foo <-> a) <-> the) <-> bar');
768+ SELECT to_tsquery('english', ' ((foo <-> a) <-> the) <-> bar');
769769 to_tsquery
770770-----------------
771771 'foo' <3> 'bar'
772772(1 row)
773773
774- SELECT to_tsquery('foo <-> a <-> the <-> bar');
774+ SELECT to_tsquery('english', ' foo <-> a <-> the <-> bar');
775775 to_tsquery
776776-----------------
777777 'foo' <3> 'bar'
778778(1 row)
779779
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');
781781 phraseto_tsquery
782782-----------------------------------------------------------------------
783783 ( ( ( 'postgresql' <3> 'extend' ) <3> 'user' ) <2> 'mani' ) <-> 'way'
@@ -1462,7 +1462,7 @@ create temp table phrase_index_test(fts tsvector);
14621462insert into phrase_index_test values('A fat cat has just eaten a rat.');
14631463create index phrase_index_test_idx on phrase_index_test using gin(fts);
14641464set 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');
14661466 fts
14671467-------------------------------------------------
14681468 '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))');
169169SELECT to_tsquery(' english' , ' 2 <-> ((1 <-> a) <-> s)' );
170170SELECT to_tsquery(' english' , ' 2 <-> (s <-> (1 <-> a))' );
171171
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' );
176176
177177
178178SELECT ts_rank_cd(to_tsvector(' english' , '
@@ -485,5 +485,5 @@ create temp table phrase_index_test(fts tsvector);
485485insert into phrase_index_test values (' A fat cat has just eaten a rat.' );
486486create index phrase_index_test_idx on phrase_index_test using gin(fts);
487487set 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' );
489489set enable_seqscan = on ;
You can’t perform that action at this time.
0 commit comments