Make lookup search explicit
Speedsup sharee lookup quite a bit. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bd16ddd675
commit
e5edc58d11
|
@ -137,7 +137,7 @@ class ShareesAPIController extends OCSController {
|
|||
* @return DataResponse
|
||||
* @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
|
||||
$threshold = (int)$this->config->getSystemValue('sharing.minSearchStringLength', 0);
|
||||
|
|
Loading…
Reference in New Issue