@@ -86,6 +86,7 @@ public function getPropertyDefinitionsForScope(string $href, ?string $path): arr
8686 new SearchPropertyDefinition ('{DAV:}displayname ' , true , true , true ),
8787 new SearchPropertyDefinition ('{DAV:}getcontenttype ' , true , true , true ),
8888 new SearchPropertyDefinition ('{DAV:}getlastmodified ' , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
89+ new SearchPropertyDefinition ('{http://nextcloud.org/ns}upload_time ' , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
8990 new SearchPropertyDefinition (FilesPlugin::SIZE_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER ),
9091 new SearchPropertyDefinition (TagsPlugin::FAVORITE_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_BOOLEAN ),
9192 new SearchPropertyDefinition (FilesPlugin::INTERNAL_FILEID_PROPERTYNAME , true , true , false , SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER ),
@@ -298,6 +299,8 @@ private function getSearchResultProperty(SearchResult $result, SearchPropertyDef
298299 return $ node ->getName ();
299300 case '{DAV:}getlastmodified ' :
300301 return $ node ->getLastModified ();
302+ case '{http://nextcloud.org/ns}upload_time ' :
303+ return $ node ->getNode ()->getUploadTime ();
301304 case FilesPlugin::SIZE_PROPERTYNAME :
302305 return $ node ->getSize ();
303306 case FilesPlugin::INTERNAL_FILEID_PROPERTYNAME :
@@ -458,6 +461,8 @@ private function mapPropertyNameToColumn(SearchPropertyDefinition $property) {
458461 return 'mimetype ' ;
459462 case '{DAV:}getlastmodified ' :
460463 return 'mtime ' ;
464+ case '{http://nextcloud.org/ns}upload_time ' :
465+ return 'upload_time ' ;
461466 case FilesPlugin::SIZE_PROPERTYNAME :
462467 return 'size ' ;
463468 case TagsPlugin::FAVORITE_PROPERTYNAME :
0 commit comments