fix: search capabilities format (#7551)

* fix: search capabilities format

* chore: bump reva
This commit is contained in:
Florian Schade
2023-10-23 09:28:27 +02:00
committed by GitHub
parent c49ed2f400
commit c9828c0a2a
47 changed files with 894 additions and 353 deletions
+28 -48
View File
@@ -290,54 +290,34 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string
"max_quota": cfg.MaxQuota,
},
"search": map[string]interface{}{
"property": []map[string]interface{}{
{
"name": []map[string]interface{}{
{
"enabled": true,
},
},
"mtime": []map[string]interface{}{
{
"keywords": []string{"today", "yesterday", "this week", "last week", "last 7 days", "this month", "last month", "last 30 days", "this year", "last year"},
"enabled": true,
},
},
"size": []map[string]interface{}{
{
"enabled": false,
},
},
"mimetype": []map[string]interface{}{
{
"enabled": true,
},
},
"type": []map[string]interface{}{
{
"enabled": true,
},
},
"tag": []map[string]interface{}{
{
"enabled": true,
},
},
"tags": []map[string]interface{}{
{
"enabled": true,
},
},
"content": []map[string]interface{}{
{
"enabled": true,
},
},
"scope": []map[string]interface{}{
{
"enabled": true,
},
},
"property": map[string]interface{}{
"name": map[string]interface{}{
"enabled": true,
},
"mtime": map[string]interface{}{
"keywords": []string{"today", "yesterday", "this week", "last week", "last 7 days", "this month", "last month", "last 30 days", "this year", "last year"},
"enabled": true,
},
"size": map[string]interface{}{
"enabled": false,
},
"mimetype": map[string]interface{}{
"enabled": true,
},
"type": map[string]interface{}{
"enabled": true,
},
"tag": map[string]interface{}{
"enabled": true,
},
"tags": map[string]interface{}{
"enabled": true,
},
"content": map[string]interface{}{
"enabled": true,
},
"scope": map[string]interface{}{
"enabled": true,
},
},
},