@@ -4130,37 +4130,37 @@ select to_tsvector('english', '{"a": "aaa in bbb ddd ccc", "b": 123, "c": 456}':
41304130(1 row)
41314131
41324132-- jsonb_to_tsvector
4133- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"all"');
4133+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"all"');
41344134 jsonb_to_tsvector
41354135----------------------------------------------------------------------------------------
41364136 '123':8 '456':12 'aaa':2 'b':6 'bbb':4 'c':10 'd':14 'f':18 'fals':20 'g':22 'true':16
41374137(1 row)
41384138
4139- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"key"');
4139+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"key"');
41404140 jsonb_to_tsvector
41414141--------------------------------
41424142 'b':2 'c':4 'd':6 'f':8 'g':10
41434143(1 row)
41444144
4145- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"string"');
4145+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"string"');
41464146 jsonb_to_tsvector
41474147-------------------
41484148 'aaa':1 'bbb':3
41494149(1 row)
41504150
4151- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"numeric"');
4151+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"numeric"');
41524152 jsonb_to_tsvector
41534153-------------------
41544154 '123':1 '456':3
41554155(1 row)
41564156
4157- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"boolean"');
4157+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '"boolean"');
41584158 jsonb_to_tsvector
41594159-------------------
41604160 'fals':3 'true':1
41614161(1 row)
41624162
4163- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '["string", "numeric"]');
4163+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '["string", "numeric"]');
41644164 jsonb_to_tsvector
41654165---------------------------------
41664166 '123':5 '456':7 'aaa':1 'bbb':3
@@ -4252,21 +4252,21 @@ select jsonb_to_tsvector('null'::jsonb, '"all"');
42524252
42534253(1 row)
42544254
4255- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '""');
4255+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '""');
42564256ERROR: wrong flag in flag array: ""
42574257HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
4258- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '{}');
4258+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '{}');
42594259ERROR: wrong flag type, only arrays and scalars are allowed
4260- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '[]');
4260+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '[]');
42614261 jsonb_to_tsvector
42624262-------------------
42634263
42644264(1 row)
42654265
4266- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, 'null');
4266+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, 'null');
42674267ERROR: flag array element is not a string
42684268HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
4269- select jsonb_to_tsvector('{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '["all", null]');
4269+ select jsonb_to_tsvector('english', ' {"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '["all", null]');
42704270ERROR: flag array element is not a string
42714271HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
42724272-- ts_headline for jsonb