@@ -4130,37 +4130,37 @@ select to_tsvector('english', '{"a": "aaa in bbb ddd ccc", "b": 123, "c": 456}':
4130
4130
(1 row)
4131
4131
4132
4132
-- 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"');
4134
4134
jsonb_to_tsvector
4135
4135
----------------------------------------------------------------------------------------
4136
4136
'123':8 '456':12 'aaa':2 'b':6 'bbb':4 'c':10 'd':14 'f':18 'fals':20 'g':22 'true':16
4137
4137
(1 row)
4138
4138
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"');
4140
4140
jsonb_to_tsvector
4141
4141
--------------------------------
4142
4142
'b':2 'c':4 'd':6 'f':8 'g':10
4143
4143
(1 row)
4144
4144
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"');
4146
4146
jsonb_to_tsvector
4147
4147
-------------------
4148
4148
'aaa':1 'bbb':3
4149
4149
(1 row)
4150
4150
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"');
4152
4152
jsonb_to_tsvector
4153
4153
-------------------
4154
4154
'123':1 '456':3
4155
4155
(1 row)
4156
4156
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"');
4158
4158
jsonb_to_tsvector
4159
4159
-------------------
4160
4160
'fals':3 'true':1
4161
4161
(1 row)
4162
4162
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"]');
4164
4164
jsonb_to_tsvector
4165
4165
---------------------------------
4166
4166
'123':5 '456':7 'aaa':1 'bbb':3
@@ -4252,21 +4252,21 @@ select jsonb_to_tsvector('null'::jsonb, '"all"');
4252
4252
4253
4253
(1 row)
4254
4254
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, '""');
4256
4256
ERROR: wrong flag in flag array: ""
4257
4257
HINT: 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, '{}');
4259
4259
ERROR: 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, '[]');
4261
4261
jsonb_to_tsvector
4262
4262
-------------------
4263
4263
4264
4264
(1 row)
4265
4265
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');
4267
4267
ERROR: flag array element is not a string
4268
4268
HINT: 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]');
4270
4270
ERROR: flag array element is not a string
4271
4271
HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
4272
4272
-- ts_headline for jsonb
0 commit comments