diff --git a/app/config/collections.php b/app/config/collections.php index b3e3417555..86d2f7ee45 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1810,6 +1810,17 @@ $commonCollections = [ 'array' => false, 'filters' => [], ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], ], 'indexes' => [ [ @@ -1853,7 +1864,14 @@ $commonCollections = [ 'attributes' => ['topicInternalId'], 'lengths' => [], 'orders' => [], - ] + ], + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], ], ], diff --git a/app/controllers/api/messaging.php b/app/controllers/api/messaging.php index 124bc2d219..275a4b1686 100644 --- a/app/controllers/api/messaging.php +++ b/app/controllers/api/messaging.php @@ -1955,6 +1955,7 @@ App::post('/v1/messaging/topics/:topicId/subscribers') 'userId' => $user->getId(), 'userInternalId' => $user->getInternalId(), 'providerType' => $target->getAttribute('providerType'), + 'search' => "{$target->getAttribute('providerType')} " ]); try {