{"action":"created","issue":{"url":"https://api.github.com/repos/github/elastomer-client/issues/113","labels_url":"https://api.github.com/repos/github/elastomer-client/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/github/elastomer-client/issues/113/comments","events_url":"https://api.github.com/repos/github/elastomer-client/issues/113/events","html_url":"https://github.com/github/elastomer-client/pull/113","id":107113939,"number":113,"title":"Implement the percolate API","user":{"login":"chrismwendt","id":1387653,"avatar_url":"https://avatars.githubusercontent.com/u/1387653?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismwendt","html_url":"https://github.com/chrismwendt","followers_url":"https://api.github.com/users/chrismwendt/followers","following_url":"https://api.github.com/users/chrismwendt/following{/other_user}","gists_url":"https://api.github.com/users/chrismwendt/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismwendt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismwendt/subscriptions","organizations_url":"https://api.github.com/users/chrismwendt/orgs","repos_url":"https://api.github.com/users/chrismwendt/repos","events_url":"https://api.github.com/users/chrismwendt/events{/privacy}","received_events_url":"https://api.github.com/users/chrismwendt/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T01:53:34Z","updated_at":"2015-09-18T19:58:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/github/elastomer-client/pulls/113","html_url":"https://github.com/github/elastomer-client/pull/113","diff_url":"https://github.com/github/elastomer-client/pull/113.diff","patch_url":"https://github.com/github/elastomer-client/pull/113.patch"},"body":"This looked like low hanging fruit, so I decided to give it a shot. \"Percolate API\" #24 is the motivating issue."},"comment":{"url":"https://api.github.com/repos/github/elastomer-client/issues/comments/141551737","html_url":"https://github.com/github/elastomer-client/pull/113#issuecomment-141551737","issue_url":"https://api.github.com/repos/github/elastomer-client/issues/113","id":141551737,"user":{"login":"grantr","id":680,"avatar_url":"https://avatars.githubusercontent.com/u/680?v=3","gravatar_id":"","url":"https://api.github.com/users/grantr","html_url":"https://github.com/grantr","followers_url":"https://api.github.com/users/grantr/followers","following_url":"https://api.github.com/users/grantr/following{/other_user}","gists_url":"https://api.github.com/users/grantr/gists{/gist_id}","starred_url":"https://api.github.com/users/grantr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantr/subscriptions","organizations_url":"https://api.github.com/users/grantr/orgs","repos_url":"https://api.github.com/users/grantr/repos","events_url":"https://api.github.com/users/grantr/events{/privacy}","received_events_url":"https://api.github.com/users/grantr/received_events","type":"User","site_admin":true},"created_at":"2015-09-18T19:58:05Z","updated_at":"2015-09-18T19:58:05Z","body":"Thanks for taking this on @chrismwendt!\r\n\r\nI feel like there should be a `Percolator` object to represent a percolator, similar to `Warmer`. That would make it slightly easier to implement create/retrieve/delete/exists operations, and avoid putting those in the index method namespace.\r\n\r\nSomething like this:\r\n\r\n```ruby\r\n# Creates a percolator\r\n\r\nindex.percolator(\"1\").create(:query => { :match => { :author => \"pea53\" }})\r\n# Retrieves the percolator document\r\n\r\nindex.percolator(\"1\").get\r\n\r\n# Deletes the percolator\r\nindex.percolator(\"1\").delete\r\n\r\n# Returns true if percolator exists, otherwise false\r\nindex.percolator(\"1\").exists?\r\n```"}}