add & to chars that must be treated as spaces (#23786)

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Matheus
2023-06-20 06:52:03 -07:00
коммит произвёл GitHub
родитель df43ee60e7
Коммит d12812b6f3

Просмотреть файл

@@ -3561,7 +3561,7 @@ func (s SqlChannelStore) buildLIKEClauseX(term string, searchColumns ...string)
return searchFields
}
const spaceFulltextSearchChars = "<>+-()~:*\"!@"
const spaceFulltextSearchChars = "<>+-()~:*\"!@&"
func (s SqlChannelStore) buildFulltextClause(term string, searchColumns string) (fulltextClause, fulltextTerm string) {
// Copy the terms as we will need to prepare them differently for each search type.