Skip to content

Commit

Permalink
changed the keywords to singular
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Nov 7, 2023
1 parent 90fa587 commit 0a59d3e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions services/search/pkg/query/bleve/compiler.go
Expand Up @@ -296,7 +296,7 @@ func mimeType(k, v string) (bleveQuery.Query, bool) {
return q, false
case "folder":
return bleveQuery.NewQueryStringQuery(k + ":httpd/unix-directory"), false
case "documents":
case "document":
return bleveQuery.NewDisjunctionQuery(newQueryStringQueryList(k,
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
Expand All @@ -306,7 +306,7 @@ func mimeType(k, v string) (bleveQuery.Query, bool) {
"application/rtf",
"application/vnd.apple.pages",
)), true
case "spreadsheets":
case "spreadsheet":
return bleveQuery.NewDisjunctionQuery(newQueryStringQueryList(k,
"application/vnd.ms-excel",
"application/vnd.oasis.opendocument.spreadsheet",
Expand All @@ -317,7 +317,7 @@ func mimeType(k, v string) (bleveQuery.Query, bool) {
"application/vnd.oasis.opendocument.spreadsheet",
"application/vnd.apple.numbers",
)), true
case "presentations":
case "presentation":
return bleveQuery.NewDisjunctionQuery(newQueryStringQueryList(k,
"application/vnd.ms-excel",
"application/vnd.oasis.opendocument.spreadsheet",
Expand All @@ -328,15 +328,15 @@ func mimeType(k, v string) (bleveQuery.Query, bool) {
"application/vnd.oasis.opendocument.spreadsheet",
"application/vnd.apple.numbers",
)), true
case "pdfs":
case "pdf":
return bleveQuery.NewQueryStringQuery(k + ":application/pdf"), false
case "images":
case "image":
return bleveQuery.NewQueryStringQuery(k + ":image/*"), false
case "videos":
case "video":
return bleveQuery.NewQueryStringQuery(k + ":video/*"), false
case "audio":
return bleveQuery.NewQueryStringQuery(k + ":audio/*"), false
case "archives":
case "archive":
return bleveQuery.NewDisjunctionQuery(newQueryStringQueryList(k,
"application/zip",
"application/x-tar",
Expand Down

0 comments on commit 0a59d3e

Please sign in to comment.