@@ -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.'