diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-04-10 15:57:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-10 15:57:56 +0200 |
commit | e9c6fe2fd868d7254603a6fb23451392f2af8b54 (patch) | |
tree | b755e2afd08097e0f0e631de1a8604f482f93bb9 /lib | |
parent | afea05d296831603b90a4087cde1724142e4ef26 (diff) | |
parent | bb7e236e7466dadcd909ec93cd894a7602473f88 (diff) | |
download | nextcloud-server-e9c6fe2fd868d7254603a6fb23451392f2af8b54.tar.gz nextcloud-server-e9c6fe2fd868d7254603a6fb23451392f2af8b54.zip |
Merge pull request #4222 from nextcloud/dav-search-fileid
Allow searching file by fileid
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Cache/QuerySearchHelper.php | 4 |
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()])) { |