@@ -85,6 +85,7 @@ public function getPropertyDefinitionsForScope(string $href, ?string $path): arr
8585 new SearchPropertyDefinition ('{DAV:}displayname ' , true , true , true ),
8686 new SearchPropertyDefinition ('{DAV:}getcontenttype ' , true , true , true ),
8787 new SearchPropertyDefinition ('{DAV:}getlastmodified ' , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
88+ new SearchPropertyDefinition ('{http://nextcloud.org/ns}upload_time ' , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
8889 new SearchPropertyDefinition (FilesPlugin::SIZE_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER ),
8990 new SearchPropertyDefinition (TagsPlugin::FAVORITE_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_BOOLEAN ),
9091 new SearchPropertyDefinition (FilesPlugin::INTERNAL_FILEID_PROPERTYNAME , true , true , false , SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER ),
@@ -297,6 +298,8 @@ private function getSearchResultProperty(SearchResult $result, SearchPropertyDef
297298 return $ node ->getName ();
298299 case '{DAV:}getlastmodified ' :
299300 return $ node ->getLastModified ();
301+ case '{http://nextcloud.org/ns}upload_time ' :
302+ return $ node ->getNode ()->getUploadTime ();
300303 case FilesPlugin::SIZE_PROPERTYNAME :
301304 return $ node ->getSize ();
302305 case FilesPlugin::INTERNAL_FILEID_PROPERTYNAME :
@@ -451,6 +454,8 @@ private function mapPropertyNameToColumn(SearchPropertyDefinition $property) {
451454 return 'mimetype ' ;
452455 case '{DAV:}getlastmodified ' :
453456 return 'mtime ' ;
457+ case '{http://nextcloud.org/ns}upload_time ' :
458+ return 'upload_time ' ;
454459 case FilesPlugin::SIZE_PROPERTYNAME :
455460 return 'size ' ;
456461 case TagsPlugin::FAVORITE_PROPERTYNAME :
0 commit comments