{"action":"created","issue":{"url":"https://api.github.com/repos/pat/thinking-sphinx/issues/1030","repository_url":"https://api.github.com/repos/pat/thinking-sphinx","labels_url":"https://api.github.com/repos/pat/thinking-sphinx/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/pat/thinking-sphinx/issues/1030/comments","events_url":"https://api.github.com/repos/pat/thinking-sphinx/issues/1030/events","html_url":"https://github.com/pat/thinking-sphinx/issues/1030","id":192533334,"number":1030,"title":"query error: no field 'is_published' found in schema","user":{"login":"dikey94","id":14232224,"avatar_url":"https://avatars.githubusercontent.com/u/14232224?v=3","gravatar_id":"","url":"https://api.github.com/users/dikey94","html_url":"https://github.com/dikey94","followers_url":"https://api.github.com/users/dikey94/followers","following_url":"https://api.github.com/users/dikey94/following{/other_user}","gists_url":"https://api.github.com/users/dikey94/gists{/gist_id}","starred_url":"https://api.github.com/users/dikey94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dikey94/subscriptions","organizations_url":"https://api.github.com/users/dikey94/orgs","repos_url":"https://api.github.com/users/dikey94/repos","events_url":"https://api.github.com/users/dikey94/events{/privacy}","received_events_url":"https://api.github.com/users/dikey94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-30T10:47:46Z","updated_at":"2016-11-30T14:09:50Z","closed_at":null,"body":"I'm trying to run Thinking Sphinx in my forum project.\r\n\r\nController:\r\n```\r\n....\r\ndef search\r\n    @discussions = Discussion.search ThinkingSphinx::Query.escape(params[:query]), :conditions => {:is_published => true}\r\nend\r\n....\r\n```\r\n\r\nDiscussion model:\r\n```\r\n...\r\ndef is_published?\r\n    Utterance.published.pluck(:discussion_id).include? self.id\r\nend\r\n...\r\n```\r\n\r\nIndex:\r\n```\r\nThinkingSphinx::Index.define :discussion, with: :real_time do\r\n  indexes topic\r\n  has is_published?, as: :is_published, type: :boolean\r\nend\r\n```\r\n\r\nAfter \"rails ts:regenerate\" and running the search engine I've got:\r\n\r\n> index discussion_core: query error: no field 'is_published' found in schema - SELECT * FROM `discussion_core` WHERE MATCH('kolejna @is_published true') AND `sphinx_deleted` = 0 LIMIT 0, 20; SHOW META\r\n\r\nI would be grateful for help."},"comment":{"url":"https://api.github.com/repos/pat/thinking-sphinx/issues/comments/263882111","html_url":"https://github.com/pat/thinking-sphinx/issues/1030#issuecomment-263882111","issue_url":"https://api.github.com/repos/pat/thinking-sphinx/issues/1030","id":263882111,"user":{"login":"pat","id":4183,"avatar_url":"https://avatars.githubusercontent.com/u/4183?v=3","gravatar_id":"","url":"https://api.github.com/users/pat","html_url":"https://github.com/pat","followers_url":"https://api.github.com/users/pat/followers","following_url":"https://api.github.com/users/pat/following{/other_user}","gists_url":"https://api.github.com/users/pat/gists{/gist_id}","starred_url":"https://api.github.com/users/pat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pat/subscriptions","organizations_url":"https://api.github.com/users/pat/orgs","repos_url":"https://api.github.com/users/pat/repos","events_url":"https://api.github.com/users/pat/events{/privacy}","received_events_url":"https://api.github.com/users/pat/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T14:09:50Z","updated_at":"2016-11-30T14:09:50Z","body":"Can you give the latest code in the develop branch a spin? I think I've fixed this recently, but would be great to have confirmation before I publish a new gem version.\r\n\r\n```ruby\r\ngem 'thinking-sphinx', '~> 3.2',\r\n  :git    => 'git://github.com/pat/thinking-sphinx.git',\r\n  :branch => 'develop',\r\n  :ref    => 'dc16d1c590'\r\n```"}}
{"actor":{"display_login":"pat"}}