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

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Matheus 2023-06-20 06:52:03 -07:00 committed by GitHub
parent df43ee60e7
commit d12812b6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.