1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

file search attribute

This commit is contained in:
Damodar Lohani 2021-10-17 12:29:35 +05:45
parent da068085ef
commit 68361364b3

View file

@ -222,6 +222,17 @@ App::post('/v1/storage/buckets')
'array' => false, 'array' => false,
'filters' => [], 'filters' => [],
]), ]),
new Document([
'$id' => 'search',
'type' => Database::VAR_STRING,
'format' => '',
'size' => 16384,
'signed' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
]),
], [ ], [
new Document([ new Document([
'$id' => '_key_bucket', '$id' => '_key_bucket',
@ -231,12 +242,12 @@ App::post('/v1/storage/buckets')
'orders' => [Database::ORDER_ASC], 'orders' => [Database::ORDER_ASC],
]), ]),
new Document([ new Document([
'$id' => '_fulltext_name', '$id' => '_key_search',
'type' => Database::INDEX_FULLTEXT, 'type' => Database::INDEX_FULLTEXT,
'attributes' => ['name'], 'attributes' => ['search'],
'lengths' => [1024], 'lengths' => [2048],
'orders' => [Database::ORDER_ASC], 'orders' => [Database::ORDER_ASC],
]), ],),
]); ]);
$bucket = $dbForInternal->createDocument('buckets', new Document([ $bucket = $dbForInternal->createDocument('buckets', new Document([