file search attribute
This commit is contained in:
parent
da068085ef
commit
68361364b3
1 changed files with 15 additions and 4 deletions
|
@ -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([
|
||||||
|
|
Loading…
Reference in a new issue