1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Update query attribute to search, remove name index

This commit is contained in:
Jake Barnby 2022-01-19 20:57:18 +13:00
parent 1a6a1498bc
commit 438f80cc5a
2 changed files with 1 additions and 8 deletions

View file

@ -102,13 +102,6 @@ $collections = [
'lengths' => [1024],
'orders' => [Database::ORDER_ASC],
],
[
'$id' => '_fulltext_name',
'type' => Database::INDEX_FULLTEXT,
'attributes' => ['name'],
'lengths' => [256],
'orders' => [Database::ORDER_ASC],
],
],
],

View file

@ -230,7 +230,7 @@ App::get('/v1/database/collections')
$queries = [];
if (!empty($search)) {
$queries[] = new Query('name', Query::TYPE_SEARCH, [$search]);
$queries[] = new Query('search', Query::TYPE_SEARCH, [$search]);
}
$usage->setParam('database.collections.read', 1);