Allow for searching by metadata like "Size:<100"

This commit is contained in:
André Duffeck
2022-05-12 13:42:46 +02:00
parent 89d2939fab
commit c6c718eb41
4 changed files with 136 additions and 98 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ 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,
})
if err != nil {
e := merrors.Parse(err.Error())