diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-11-23 07:52:27 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 07:52:27 -0100 |
commit | ee787cd1c6ee5c9934aebe282b3d0a151a0570a5 (patch) | |
tree | 823ae1b28f28739d650437bbf076b3de0a2134d9 /lib/private/Files/Cache | |
parent | f1a7fcea8111a36ff8ba8fcd57b91142f9e8c146 (diff) | |
parent | fbe92d4a9018b8439946880148c2b907ea56c56c (diff) | |
download | nextcloud-server-ee787cd1c6ee5c9934aebe282b3d0a151a0570a5.tar.gz nextcloud-server-ee787cd1c6ee5c9934aebe282b3d0a151a0570a5.zip |
Merge pull request #41459 from nextcloud/enh/noid/search-metadata-null
implements search on null/notnull metadata
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r-- | lib/private/Files/Cache/SearchBuilder.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/SearchBuilder.php b/lib/private/Files/Cache/SearchBuilder.php index c3699cca63d..38161ec9cc6 100644 --- a/lib/private/Files/Cache/SearchBuilder.php +++ b/lib/private/Files/Cache/SearchBuilder.php @@ -47,6 +47,7 @@ class SearchBuilder { ISearchComparison::COMPARE_GREATER_THAN_EQUAL => 'gte', ISearchComparison::COMPARE_LESS_THAN => 'lt', ISearchComparison::COMPARE_LESS_THAN_EQUAL => 'lte', + ISearchComparison::COMPARE_DEFINED => 'isNotNull', ]; protected static $searchOperatorNegativeMap = [ @@ -57,6 +58,7 @@ class SearchBuilder { ISearchComparison::COMPARE_GREATER_THAN_EQUAL => 'lt', ISearchComparison::COMPARE_LESS_THAN => 'gte', ISearchComparison::COMPARE_LESS_THAN_EQUAL => 'gt', + ISearchComparison::COMPARE_DEFINED => 'isNull', ]; public const TAG_FAVORITE = '_$!<Favorite>!$_'; |