diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-07-30 09:55:03 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-07-30 09:55:03 -0400 |
commit | bcee238666397cf8c96ba6d1583470993e692012 (patch) | |
tree | 86a8bcff43f6cd0ae15f6c79e42f6592dedd4c69 /store/sql_post_store.go | |
parent | b2b6bddadc6331d0f183f10da556b34f46314f73 (diff) | |
download | chat-bcee238666397cf8c96ba6d1583470993e692012.tar.gz chat-bcee238666397cf8c96ba6d1583470993e692012.tar.bz2 chat-bcee238666397cf8c96ba6d1583470993e692012.zip |
partially fixed postgres search so that multiple search terms work
Diffstat (limited to 'store/sql_post_store.go')
-rw-r--r-- | store/sql_post_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_post_store.go b/store/sql_post_store.go index ede69d125..479caf838 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -401,7 +401,7 @@ func (s SqlPostStore) Search(teamId string, userId string, terms string, isHasht Id = ChannelId AND TeamId = $1 AND UserId = $2 AND DeleteAt = 0) - AND %s @@ plainto_tsquery($3) + AND %s @@ to_tsquery($3) ORDER BY CreateAt DESC LIMIT 100`, searchType) |