Make lookup search explicit

Speedsup sharee lookup quite a bit.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-04-19 20:05:21 +02:00 committed by backportbot[bot]
parent 1e542beaab
commit f7d88b0b5a
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class ShareesAPIController extends OCSController {
* @return DataResponse * @return DataResponse
* @throws OCSBadRequestException * @throws OCSBadRequestException
*/ */
public function search(string $search = '', string $itemType = null, int $page = 1, int $perPage = 200, $shareType = null, bool $lookup = true): DataResponse { public function search(string $search = '', string $itemType = null, int $page = 1, int $perPage = 200, $shareType = null, bool $lookup = false): DataResponse {
// only search for string larger than a given threshold // only search for string larger than a given threshold
$threshold = (int)$this->config->getSystemValue('sharing.minSearchStringLength', 0); $threshold = (int)$this->config->getSystemValue('sharing.minSearchStringLength', 0);