summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-04-05 15:12:30 +0200
committerRobin Appelman <robin@icewind.nl>2017-04-05 15:22:53 +0200
commitbb7e236e7466dadcd909ec93cd894a7602473f88 (patch)
treec4650875dd7832f4cc345e89be0a2ac6cedff828 /lib
parente0227cb4588a343db9eadfefc2733660877fb60d (diff)
downloadnextcloud-server-bb7e236e7466dadcd909ec93cd894a7602473f88.tar.gz
nextcloud-server-bb7e236e7466dadcd909ec93cd894a7602473f88.zip
Allow searching file by fileid
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/QuerySearchHelper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/QuerySearchHelper.php b/lib/private/Files/Cache/QuerySearchHelper.php
index 2d20da72f51..6812caabd24 100644
--- a/lib/private/Files/Cache/QuerySearchHelper.php
+++ b/lib/private/Files/Cache/QuerySearchHelper.php
@@ -152,7 +152,8 @@ class QuerySearchHelper {
'name' => 'string',
'size' => 'integer',
'tagname' => 'string',
- 'favorite' => 'boolean'
+ 'favorite' => 'boolean',
+ 'fileid' => 'integer'
];
$comparisons = [
'mimetype' => ['eq', 'like'],
@@ -161,6 +162,7 @@ class QuerySearchHelper {
'size' => ['eq', 'gt', 'lt', 'gte', 'lte'],
'tagname' => ['eq', 'like'],
'favorite' => ['eq'],
+ 'fileid' => ['eq']
];
if (!isset($types[$operator->getField()])) {