Merge pull request #4094 from aduffeck/polish-search

Polish search
This commit is contained in:
Andre Duffeck
2022-07-06 08:44:43 +02:00
committed by GitHub
6 changed files with 22 additions and 8 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())