diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-02 15:49:17 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-02 15:49:17 -0500 |
commit | 98ed40442d92c439d622338a965ffda460ceb4a5 (patch) | |
tree | d99800e643a6987420ad967a3da4258d514e2fa7 /store/sql_post_store.go | |
parent | c5013610c24dc785c5701fb6e06e52817c42ad78 (diff) | |
parent | dd86d3532a0bb7952958ff85f9ec4eff9e18db91 (diff) | |
download | chat-98ed40442d92c439d622338a965ffda460ceb4a5.tar.gz chat-98ed40442d92c439d622338a965ffda460ceb4a5.tar.bz2 chat-98ed40442d92c439d622338a965ffda460ceb4a5.zip |
Merge pull request #1272 from hmhealey/plt912
PLT-912 Stopped automatically appending *s to the end of single word search queries
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r-- | store/sql_post_store.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go index f514d23ed..de8c4f356 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -443,13 +443,6 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP var posts []*model.Post - if utils.Cfg.SqlSettings.DriverName == model.DATABASE_DRIVER_POSTGRES { - // Parse text for wildcards - if wildcard, err := regexp.Compile("\\*($| )"); err == nil { - terms = wildcard.ReplaceAllLiteralString(terms, "* ") - } - } - searchQuery := ` SELECT * |