fix(dbfs): file uri name_or op should be compatiable with older version

This commit is contained in:
Aaron Liu
2025-05-20 11:59:40 +08:00
parent 7ddb611d6c
commit acffd984c1
2 changed files with 6 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ const (
const (
QuerySearchName = "name"
QuerySearchNameOpOr = "name_op_or"
QuerySearchUseOr = "use_or"
QuerySearchMetadataPrefix = "meta_"
QuerySearchCaseFolding = "case_folding"
QuerySearchType = "type"
@@ -230,6 +231,10 @@ func (u *URI) SearchParameters() *inventory.SearchFileParameters {
res.NameOperatorOr = true
}
if _, ok := q[QuerySearchUseOr]; ok {
res.NameOperatorOr = true
}
if _, ok := q[QuerySearchCaseFolding]; ok {
res.CaseFolding = true
}