diff --git a/internal/usecases/convertquery/createConstraints.go b/internal/usecases/convertquery/createConstraints.go index b03d06f79342d39122612dd076eeedf5afe37f8b..74417620adc71e3cd2677b87e7e8f08ddbce802b 100644 --- a/internal/usecases/convertquery/createConstraints.go +++ b/internal/usecases/convertquery/createConstraints.go @@ -48,20 +48,21 @@ func createConstraintBoolExpression(constraint *entity.QueryConstraintStruct, na case "text": value = fmt.Sprintf("\"%s\"", constraint.Value) switch constraint.MatchType { + case "NEQ": + match = "!=" case "contains": - match = "IN" - case "startswith": match = "LIKE" + case "excludes": + match = "NOT LIKE" value = fmt.Sprintf("\"%s%%\"", constraint.Value) - case "endswith": - match = "LIKE" - value = fmt.Sprintf("\"_%s\"", constraint.Value) - default: //exact + default: //EQ match = "==" } case "number": value = constraint.Value switch constraint.MatchType { + case "NEQ": + match = "!=" case "GT": match = ">" case "LT":