summaryrefslogtreecommitdiffstats
path: root/store/sqlstore/channel_store.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-09-27 18:44:22 +0100
committerGitHub <noreply@github.com>2017-09-27 18:44:22 +0100
commit8d662105d3049a5cd67a7bf42ab70d479d4348e2 (patch)
treed9153571bbbea3bca202ab1b547ddefe2e18ca37 /store/sqlstore/channel_store.go
parent8c80cdde38cceb3424b2b1f43eadf7a1aab0c6df (diff)
downloadchat-8d662105d3049a5cd67a7bf42ab70d479d4348e2.tar.gz
chat-8d662105d3049a5cd67a7bf42ab70d479d4348e2.tar.bz2
chat-8d662105d3049a5cd67a7bf42ab70d479d4348e2.zip
PLT-7207: Change from fulltext to LIKE search for user filtering (#7343)
* PLT-7202: Switch user search to LIKE queries to avoid fulltext pitfalls. * Add 2 char name unit test. * Escape underscores properly. * Add more tests and fix * handling. * Make search/indexes case insensitive for postgres.
Diffstat (limited to 'store/sqlstore/channel_store.go')
-rw-r--r--store/sqlstore/channel_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sqlstore/channel_store.go b/store/sqlstore/channel_store.go
index 06cca9e88..ed001f2d2 100644
--- a/store/sqlstore/channel_store.go
+++ b/store/sqlstore/channel_store.go
@@ -1583,7 +1583,7 @@ func (s SqlChannelStore) performSearch(searchQuery string, term string, paramete
result := store.StoreResult{}
// these chars have special meaning and can be treated as spaces
- for _, c := range specialUserSearchChar {
+ for _, c := range ignoreUserSearchChar {
term = strings.Replace(term, c, " ", -1)
}