{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/treehouse/asari/pulls/2","id":169732213,"html_url":"https://github.com/treehouse/asari/pull/2","diff_url":"https://github.com/treehouse/asari/pull/2.diff","patch_url":"https://github.com/treehouse/asari/pull/2.patch","issue_url":"https://api.github.com/repos/treehouse/asari/issues/2","number":2,"state":"open","locked":false,"title":"allow compound boolean queries","user":{"login":"madcowley","id":6112,"avatar_url":"https://avatars3.githubusercontent.com/u/6112?v=4","gravatar_id":"","url":"https://api.github.com/users/madcowley","html_url":"https://github.com/madcowley","followers_url":"https://api.github.com/users/madcowley/followers","following_url":"https://api.github.com/users/madcowley/following{/other_user}","gists_url":"https://api.github.com/users/madcowley/gists{/gist_id}","starred_url":"https://api.github.com/users/madcowley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madcowley/subscriptions","organizations_url":"https://api.github.com/users/madcowley/orgs","repos_url":"https://api.github.com/users/madcowley/repos","events_url":"https://api.github.com/users/madcowley/events{/privacy}","received_events_url":"https://api.github.com/users/madcowley/received_events","type":"User","site_admin":false},"body":"We needed to be able to turn a hash like \r\n`filter: { and: {type_name: 'foo', not: {tags: 'mytag'}}}`\r\ninto\r\n`(and type_name:'foo' (not tags:'mytag'))`\r\n\r\nto handle, for instance, excluding items tagged with a particular term from a search result.\r\n\r\nThe boolean_query field was instead returning:\r\n`(and type_name:'foo'(not tags:'mytag'))`\r\nwhich caused a bad request error.\r\n\r\nThis just adds a space where needed.","created_at":"2018-02-16T21:41:00Z","updated_at":"2018-02-16T21:41:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/treehouse/asari/pulls/2/commits","review_comments_url":"https://api.github.com/repos/treehouse/asari/pulls/2/comments","review_comment_url":"https://api.github.com/repos/treehouse/asari/pulls/comments{/number}","comments_url":"https://api.github.com/repos/treehouse/asari/issues/2/comments","statuses_url":"https://api.github.com/repos/treehouse/asari/statuses/6f04b15a8d4b596db8aec7982ee350f94989126c","head":{"label":"treehouse:learn-the-word-no","ref":"learn-the-word-no","sha":"6f04b15a8d4b596db8aec7982ee350f94989126c","user":{"login":"treehouse","id":67474,"avatar_url":"https://avatars2.githubusercontent.com/u/67474?v=4","gravatar_id":"","url":"https://api.github.com/users/treehouse","html_url":"https://github.com/treehouse","followers_url":"https://api.github.com/users/treehouse/followers","following_url":"https://api.github.com/users/treehouse/following{/other_user}","gists_url":"https://api.github.com/users/treehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/treehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treehouse/subscriptions","organizations_url":"https://api.github.com/users/treehouse/orgs","repos_url":"https://api.github.com/users/treehouse/repos","events_url":"https://api.github.com/users/treehouse/events{/privacy}","received_events_url":"https://api.github.com/users/treehouse/received_events","type":"Organization","site_admin":false},"repo":{"id":37220428,"name":"asari","full_name":"treehouse/asari","owner":{"login":"treehouse","id":67474,"avatar_url":"https://avatars2.githubusercontent.com/u/67474?v=4","gravatar_id":"","url":"https://api.github.com/users/treehouse","html_url":"https://github.com/treehouse","followers_url":"https://api.github.com/users/treehouse/followers","following_url":"https://api.github.com/users/treehouse/following{/other_user}","gists_url":"https://api.github.com/users/treehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/treehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treehouse/subscriptions","organizations_url":"https://api.github.com/users/treehouse/orgs","repos_url":"https://api.github.com/users/treehouse/repos","events_url":"https://api.github.com/users/treehouse/events{/privacy}","received_events_url":"https://api.github.com/users/treehouse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/treehouse/asari","description":"a Ruby wrapper for AWS CloudSearch.","fork":true,"url":"https://api.github.com/repos/treehouse/asari","forks_url":"https://api.github.com/repos/treehouse/asari/forks","keys_url":"https://api.github.com/repos/treehouse/asari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/treehouse/asari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/treehouse/asari/teams","hooks_url":"https://api.github.com/repos/treehouse/asari/hooks","issue_events_url":"https://api.github.com/repos/treehouse/asari/issues/events{/number}","events_url":"https://api.github.com/repos/treehouse/asari/events","assignees_url":"https://api.github.com/repos/treehouse/asari/assignees{/user}","branches_url":"https://api.github.com/repos/treehouse/asari/branches{/branch}","tags_url":"https://api.github.com/repos/treehouse/asari/tags","blobs_url":"https://api.github.com/repos/treehouse/asari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/treehouse/asari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/treehouse/asari/git/refs{/sha}","trees_url":"https://api.github.com/repos/treehouse/asari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/treehouse/asari/statuses/{sha}","languages_url":"https://api.github.com/repos/treehouse/asari/languages","stargazers_url":"https://api.github.com/repos/treehouse/asari/stargazers","contributors_url":"https://api.github.com/repos/treehouse/asari/contributors","subscribers_url":"https://api.github.com/repos/treehouse/asari/subscribers","subscription_url":"https://api.github.com/repos/treehouse/asari/subscription","commits_url":"https://api.github.com/repos/treehouse/asari/commits{/sha}","git_commits_url":"https://api.github.com/repos/treehouse/asari/git/commits{/sha}","comments_url":"https://api.github.com/repos/treehouse/asari/comments{/number}","issue_comment_url":"https://api.github.com/repos/treehouse/asari/issues/comments{/number}","contents_url":"https://api.github.com/repos/treehouse/asari/contents/{+path}","compare_url":"https://api.github.com/repos/treehouse/asari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/treehouse/asari/merges","archive_url":"https://api.github.com/repos/treehouse/asari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/treehouse/asari/downloads","issues_url":"https://api.github.com/repos/treehouse/asari/issues{/number}","pulls_url":"https://api.github.com/repos/treehouse/asari/pulls{/number}","milestones_url":"https://api.github.com/repos/treehouse/asari/milestones{/number}","notifications_url":"https://api.github.com/repos/treehouse/asari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/treehouse/asari/labels{/name}","releases_url":"https://api.github.com/repos/treehouse/asari/releases{/id}","deployments_url":"https://api.github.com/repos/treehouse/asari/deployments","created_at":"2015-06-10T20:20:04Z","updated_at":"2017-12-05T19:37:55Z","pushed_at":"2018-02-16T21:35:43Z","git_url":"git://github.com/treehouse/asari.git","ssh_url":"git@github.com:treehouse/asari.git","clone_url":"https://github.com/treehouse/asari.git","svn_url":"https://github.com/treehouse/asari","homepage":null,"size":151,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"treehouse:master","ref":"master","sha":"612cb52ffada56333f6dd53355e56b3f59cb4d6f","user":{"login":"treehouse","id":67474,"avatar_url":"https://avatars2.githubusercontent.com/u/67474?v=4","gravatar_id":"","url":"https://api.github.com/users/treehouse","html_url":"https://github.com/treehouse","followers_url":"https://api.github.com/users/treehouse/followers","following_url":"https://api.github.com/users/treehouse/following{/other_user}","gists_url":"https://api.github.com/users/treehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/treehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treehouse/subscriptions","organizations_url":"https://api.github.com/users/treehouse/orgs","repos_url":"https://api.github.com/users/treehouse/repos","events_url":"https://api.github.com/users/treehouse/events{/privacy}","received_events_url":"https://api.github.com/users/treehouse/received_events","type":"Organization","site_admin":false},"repo":{"id":37220428,"name":"asari","full_name":"treehouse/asari","owner":{"login":"treehouse","id":67474,"avatar_url":"https://avatars2.githubusercontent.com/u/67474?v=4","gravatar_id":"","url":"https://api.github.com/users/treehouse","html_url":"https://github.com/treehouse","followers_url":"https://api.github.com/users/treehouse/followers","following_url":"https://api.github.com/users/treehouse/following{/other_user}","gists_url":"https://api.github.com/users/treehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/treehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treehouse/subscriptions","organizations_url":"https://api.github.com/users/treehouse/orgs","repos_url":"https://api.github.com/users/treehouse/repos","events_url":"https://api.github.com/users/treehouse/events{/privacy}","received_events_url":"https://api.github.com/users/treehouse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/treehouse/asari","description":"a Ruby wrapper for AWS CloudSearch.","fork":true,"url":"https://api.github.com/repos/treehouse/asari","forks_url":"https://api.github.com/repos/treehouse/asari/forks","keys_url":"https://api.github.com/repos/treehouse/asari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/treehouse/asari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/treehouse/asari/teams","hooks_url":"https://api.github.com/repos/treehouse/asari/hooks","issue_events_url":"https://api.github.com/repos/treehouse/asari/issues/events{/number}","events_url":"https://api.github.com/repos/treehouse/asari/events","assignees_url":"https://api.github.com/repos/treehouse/asari/assignees{/user}","branches_url":"https://api.github.com/repos/treehouse/asari/branches{/branch}","tags_url":"https://api.github.com/repos/treehouse/asari/tags","blobs_url":"https://api.github.com/repos/treehouse/asari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/treehouse/asari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/treehouse/asari/git/refs{/sha}","trees_url":"https://api.github.com/repos/treehouse/asari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/treehouse/asari/statuses/{sha}","languages_url":"https://api.github.com/repos/treehouse/asari/languages","stargazers_url":"https://api.github.com/repos/treehouse/asari/stargazers","contributors_url":"https://api.github.com/repos/treehouse/asari/contributors","subscribers_url":"https://api.github.com/repos/treehouse/asari/subscribers","subscription_url":"https://api.github.com/repos/treehouse/asari/subscription","commits_url":"https://api.github.com/repos/treehouse/asari/commits{/sha}","git_commits_url":"https://api.github.com/repos/treehouse/asari/git/commits{/sha}","comments_url":"https://api.github.com/repos/treehouse/asari/comments{/number}","issue_comment_url":"https://api.github.com/repos/treehouse/asari/issues/comments{/number}","contents_url":"https://api.github.com/repos/treehouse/asari/contents/{+path}","compare_url":"https://api.github.com/repos/treehouse/asari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/treehouse/asari/merges","archive_url":"https://api.github.com/repos/treehouse/asari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/treehouse/asari/downloads","issues_url":"https://api.github.com/repos/treehouse/asari/issues{/number}","pulls_url":"https://api.github.com/repos/treehouse/asari/pulls{/number}","milestones_url":"https://api.github.com/repos/treehouse/asari/milestones{/number}","notifications_url":"https://api.github.com/repos/treehouse/asari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/treehouse/asari/labels{/name}","releases_url":"https://api.github.com/repos/treehouse/asari/releases{/id}","deployments_url":"https://api.github.com/repos/treehouse/asari/deployments","created_at":"2015-06-10T20:20:04Z","updated_at":"2017-12-05T19:37:55Z","pushed_at":"2018-02-16T21:35:43Z","git_url":"git://github.com/treehouse/asari.git","ssh_url":"git@github.com:treehouse/asari.git","clone_url":"https://github.com/treehouse/asari.git","svn_url":"https://github.com/treehouse/asari","homepage":null,"size":151,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/treehouse/asari/pulls/2"},"html":{"href":"https://github.com/treehouse/asari/pull/2"},"issue":{"href":"https://api.github.com/repos/treehouse/asari/issues/2"},"comments":{"href":"https://api.github.com/repos/treehouse/asari/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/treehouse/asari/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/treehouse/asari/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/treehouse/asari/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/treehouse/asari/statuses/6f04b15a8d4b596db8aec7982ee350f94989126c"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":2,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"madcowley"}}