Support specifying a search limit

This commit is contained in:
André Duffeck
2022-07-04 16:35:44 +02:00
parent 57c4f056ef
commit b6d374f683
4 changed files with 8 additions and 2 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ func (g Webdav) Search(w http.ResponseWriter, r *http.Request) {
ctx := revactx.ContextSetToken(r.Context(), t)
ctx = metadata.Set(ctx, revactx.TokenHeader, t)
rsp, err := g.searchClient.Search(ctx, &searchsvc.SearchRequest{
Query: rep.SearchFiles.Search.Pattern,
Query: rep.SearchFiles.Search.Pattern,
PageSize: int32(rep.SearchFiles.Search.Limit),
})
if err != nil {
e := merrors.Parse(err.Error())