@@ -105,6 +105,7 @@ public function getPropertyDefinitionsForScope(string $href, ?string $path): arr
105105 new SearchPropertyDefinition ('{DAV:}displayname ' , true , true , true ),
106106 new SearchPropertyDefinition ('{DAV:}getcontenttype ' , true , true , true ),
107107 new SearchPropertyDefinition ('{DAV:}getlastmodified ' , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
108+ new SearchPropertyDefinition ('{http://nextcloud.org/ns}upload_time ' , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
108109 new SearchPropertyDefinition (FilesPlugin::SIZE_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER ),
109110 new SearchPropertyDefinition (TagsPlugin::FAVORITE_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_BOOLEAN ),
110111 new SearchPropertyDefinition (FilesPlugin::INTERNAL_FILEID_PROPERTYNAME , true , true , false , SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER ),
@@ -317,6 +318,8 @@ private function getSearchResultProperty(SearchResult $result, SearchPropertyDef
317318 return $ node ->getName ();
318319 case '{DAV:}getlastmodified ' :
319320 return $ node ->getLastModified ();
321+ case '{http://nextcloud.org/ns}upload_time ' :
322+ return $ node ->getNode ()->getUploadTime ();
320323 case FilesPlugin::SIZE_PROPERTYNAME :
321324 return $ node ->getSize ();
322325 case FilesPlugin::INTERNAL_FILEID_PROPERTYNAME :
@@ -471,6 +474,8 @@ private function mapPropertyNameToColumn(SearchPropertyDefinition $property) {
471474 return 'mimetype ' ;
472475 case '{DAV:}getlastmodified ' :
473476 return 'mtime ' ;
477+ case '{http://nextcloud.org/ns}upload_time ' :
478+ return 'upload_time ' ;
474479 case FilesPlugin::SIZE_PROPERTYNAME :
475480 return 'size ' ;
476481 case TagsPlugin::FAVORITE_PROPERTYNAME :
0 commit comments