Search: Add "at" as an alias for "and" #22
This commit is contained in:
parent
d51aa86f0d
commit
6d30419b35
2 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ func NormalizeSearchQuery(s string) string {
|
|||
s = strings.ReplaceAll(s, AndEn, And)
|
||||
s = strings.ReplaceAll(s, WithEn, And)
|
||||
s = strings.ReplaceAll(s, InEn, And)
|
||||
s = strings.ReplaceAll(s, AtEn, And)
|
||||
s = strings.ReplaceAll(s, Plus, And)
|
||||
s = strings.ReplaceAll(s, "%", "*")
|
||||
return strings.Trim(s, "+&|_-=!@$%^(){}\\<>,.;: ")
|
||||
|
|
|
@ -49,6 +49,7 @@ const (
|
|||
AndEn = " and "
|
||||
WithEn = " with "
|
||||
InEn = " in "
|
||||
AtEn = " at "
|
||||
Space = " "
|
||||
Empty = ""
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue