@@ -76,8 +76,8 @@ public FileSearchRestService(FileSearchServiceConnector fileSearchServiceConnect
7676 @ ApiResponse (responseCode = "200" , description = "Request fulfilled" ) })
7777 public Response searchRecentDocuments (@ Parameter (description = "Query string" ) @ QueryParam ("q" ) String query ,
7878 @ Parameter (description = "My work" ) @ Schema (defaultValue = "false" ) @ QueryParam ("myWork" ) boolean myWork ,
79- @ Parameter (description = "Sort field" ) @ Schema ( defaultValue = "date" ) @ QueryParam ("sort " ) String sortField ,
80- @ Parameter (description = "Sort direction" ) @ Schema ( defaultValue = "desc" ) @ QueryParam ("direction " ) String sortDirection ,
79+ @ Parameter (description = "Sort field" ) @ QueryParam ("sortField " ) String sortField ,
80+ @ Parameter (description = "Sort direction" ) @ QueryParam ("sortDirection " ) String sortDirection ,
8181 @ Parameter (description = "Limit" ) @ Schema (defaultValue = "20" ) @ QueryParam ("limit" ) int limit ,
8282 @ Parameter (description = "favorites" ) @ Schema (defaultValue = "false" ) @ QueryParam ("favorites" ) boolean favorites ,
8383 @ Parameter (description = "Tag names list" ) @ Schema (defaultValue = "false" ) @ QueryParam ("tags" ) List <String > tagNames ,
@@ -87,12 +87,6 @@ public Response searchRecentDocuments(@Parameter(description = "Query string") @
8787 if (limit <= 0 ) {
8888 limit = DEFAULT_LIMIT ;
8989 }
90- if (StringUtils .isBlank (sortField )) {
91- sortField = "date" ;
92- }
93- if (StringUtils .isBlank (sortDirection )) {
94- sortDirection = "desc" ;
95- }
9690 List <ElasticSearchFilter > recentFilters = new ArrayList <>();
9791 String userid = String .valueOf (RestUtils .getCurrentUserIdentityId ());
9892 if (myWork ) {
0 commit comments