CREATE TABLE products(title text, meta json) type='pq';
Query OK, 0 rows affected (0.00 sec)
POST /cli -d "CREATE TABLE products(title text, meta json) type='pq'"
{
"total":0,
"error":"",
"warning":""
}
$index = [
'index' => 'products',
'body' => [
'columns' => [
'title' => ['type' => 'text'],
'meta' => ['type' => 'json']
],
'settings' => [
'type' => 'pq'
]
]
];
$client->indices()->create($index);
Array(
[total] => 0
[error] =>
[warning] =>
)
utilsApi.sql('CREATE TABLE products(title text, meta json) type=\'pq\'')
res = await utilsApi.sql('CREATE TABLE products(title text, meta json) type=\'pq\'');
utilsApi.sql("CREATE TABLE products(title text, meta json) type='pq'");
utilsApi.Sql("CREATE TABLE products(title text, meta json) type='pq'");
res = await utilsApi.sql("CREATE TABLE products(title text, meta json) type='pq'");
apiClient.UtilsAPI.Sql(context.Background()).Body("CREATE TABLE products(title text, meta json) type='pq'").Execute()
table products {
type = percolate
path = tbl_pq
rt_field = title
rt_attr_json = meta
}