{"action":"opened","issue":{"url":"https://api.github.com/repos/mattermost/platform/issues/822","labels_url":"https://api.github.com/repos/mattermost/platform/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/platform/issues/822/comments","events_url":"https://api.github.com/repos/mattermost/platform/issues/822/events","html_url":"https://github.com/mattermost/platform/issues/822","id":108540762,"number":822,"title":"Post search: We encounted an error while searching for posts","user":{"login":"petramies","id":14278742,"avatar_url":"https://avatars.githubusercontent.com/u/14278742?v=3","gravatar_id":"","url":"https://api.github.com/users/petramies","html_url":"https://github.com/petramies","followers_url":"https://api.github.com/users/petramies/followers","following_url":"https://api.github.com/users/petramies/following{/other_user}","gists_url":"https://api.github.com/users/petramies/gists{/gist_id}","starred_url":"https://api.github.com/users/petramies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petramies/subscriptions","organizations_url":"https://api.github.com/users/petramies/orgs","repos_url":"https://api.github.com/users/petramies/repos","events_url":"https://api.github.com/users/petramies/events{/privacy}","received_events_url":"https://api.github.com/users/petramies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-27T14:58:07Z","updated_at":"2015-09-27T14:58:07Z","closed_at":null,"body":" Post a new message: \r\n```\r\nJust testing if I can find this text -- (by lattimer boromits)\r\n\r\n<Whohaa>\r\n-- don't do this --\r\n(maybe))?\r\n```\r\nSearch text by \r\n```\r\n--\r\n(by lattimer\r\n<Whohaa>\r\n))?\r\n```\r\nAll these will give message \"We encounted an error while searching for posts\"\r\n```\r\n[09/27/15 17:50:53] [EROR] /api/v1/posts/search:SqlPostStore.Search code=500 rid=bi4quhrns3dsibwxczmo8855sc uid=cfpjbixcz3rt8mkn61qo5juqdw ip=127.0.0.1 We encounted an error while searching for posts [details: teamId=5fyhoik18jbgdyg8iqnrsh4mkh, err=Error 1064: syntax error, unexpected $end]\r\n\r\n```\r\n\r\nBefore search\r\n![before_search](https://cloud.githubusercontent.com/assets/14278742/10123385/f91ed648-6540-11e5-933a-4d6ad7750bc2.PNG)\r\n\r\n\r\nAfter\r\n![after_search](https://cloud.githubusercontent.com/assets/14278742/10123386/fcb3159e-6540-11e5-824e-0430250278cb.PNG)\r\n"}}