{"action":"created","comment":{"url":"https://api.github.com/repos/danpaz/bodybuilder/pulls/comments/62038294","id":62038294,"diff_hunk":"@@ -0,0 +1,26 @@\n+/**\n+ * Construct a match filter\n+ *\n+ * @param  {String}  field    Field name to match over.\n+ * @param  {String}  term     Query value.\n+ * @param  {Boolean} isPhrase Should the term be treated as a phrase or not.","path":"src/filters/match-filter.js","position":6,"original_position":6,"commit_id":"c9b33e6454f4441ef0a17847a9b58dfb973f4973","original_commit_id":"c9b33e6454f4441ef0a17847a9b58dfb973f4973","user":{"login":"ronak","id":279931,"avatar_url":"https://avatars.githubusercontent.com/u/279931?v=3","gravatar_id":"","url":"https://api.github.com/users/ronak","html_url":"https://github.com/ronak","followers_url":"https://api.github.com/users/ronak/followers","following_url":"https://api.github.com/users/ronak/following{/other_user}","gists_url":"https://api.github.com/users/ronak/gists{/gist_id}","starred_url":"https://api.github.com/users/ronak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronak/subscriptions","organizations_url":"https://api.github.com/users/ronak/orgs","repos_url":"https://api.github.com/users/ronak/repos","events_url":"https://api.github.com/users/ronak/events{/privacy}","received_events_url":"https://api.github.com/users/ronak/received_events","type":"User","site_admin":false},"body":"Even better! I'll change it.","created_at":"2016-05-04T13:30:57Z","updated_at":"2016-05-04T13:30:57Z","html_url":"https://github.com/danpaz/bodybuilder/pull/27#discussion_r62038294","pull_request_url":"https://api.github.com/repos/danpaz/bodybuilder/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/danpaz/bodybuilder/pulls/comments/62038294"},"html":{"href":"https://github.com/danpaz/bodybuilder/pull/27#discussion_r62038294"},"pull_request":{"href":"https://api.github.com/repos/danpaz/bodybuilder/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/danpaz/bodybuilder/pulls/27","id":68510420,"html_url":"https://github.com/danpaz/bodybuilder/pull/27","diff_url":"https://github.com/danpaz/bodybuilder/pull/27.diff","patch_url":"https://github.com/danpaz/bodybuilder/pull/27.patch","issue_url":"https://api.github.com/repos/danpaz/bodybuilder/issues/27","number":27,"state":"open","locked":false,"title":"Match filter","user":{"login":"ronak","id":279931,"avatar_url":"https://avatars.githubusercontent.com/u/279931?v=3","gravatar_id":"","url":"https://api.github.com/users/ronak","html_url":"https://github.com/ronak","followers_url":"https://api.github.com/users/ronak/followers","following_url":"https://api.github.com/users/ronak/following{/other_user}","gists_url":"https://api.github.com/users/ronak/gists{/gist_id}","starred_url":"https://api.github.com/users/ronak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronak/subscriptions","organizations_url":"https://api.github.com/users/ronak/orgs","repos_url":"https://api.github.com/users/ronak/repos","events_url":"https://api.github.com/users/ronak/events{/privacy}","received_events_url":"https://api.github.com/users/ronak/received_events","type":"User","site_admin":false},"body":"This does two things:\r\n\r\n- Modifies the match query with the option to make it a phrase #13 \r\n- I needed the ability to do a nested match query so I added a match filter (with the phrase option as well)\r\n\r\nNote, to make the match a phrase query I added an optional boolean as input to the query. If you prefer to keep things simple I can split it up into a separate match query and match phrase query.","created_at":"2016-05-01T22:54:05Z","updated_at":"2016-05-04T13:30:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5828ac99bb48efd1992ca70fcc32d31102a742d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/danpaz/bodybuilder/pulls/27/commits","review_comments_url":"https://api.github.com/repos/danpaz/bodybuilder/pulls/27/comments","review_comment_url":"https://api.github.com/repos/danpaz/bodybuilder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danpaz/bodybuilder/issues/27/comments","statuses_url":"https://api.github.com/repos/danpaz/bodybuilder/statuses/c9b33e6454f4441ef0a17847a9b58dfb973f4973","head":{"label":"ronak:match-filter","ref":"match-filter","sha":"c9b33e6454f4441ef0a17847a9b58dfb973f4973","user":{"login":"ronak","id":279931,"avatar_url":"https://avatars.githubusercontent.com/u/279931?v=3","gravatar_id":"","url":"https://api.github.com/users/ronak","html_url":"https://github.com/ronak","followers_url":"https://api.github.com/users/ronak/followers","following_url":"https://api.github.com/users/ronak/following{/other_user}","gists_url":"https://api.github.com/users/ronak/gists{/gist_id}","starred_url":"https://api.github.com/users/ronak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronak/subscriptions","organizations_url":"https://api.github.com/users/ronak/orgs","repos_url":"https://api.github.com/users/ronak/repos","events_url":"https://api.github.com/users/ronak/events{/privacy}","received_events_url":"https://api.github.com/users/ronak/received_events","type":"User","site_admin":false},"repo":{"id":57850709,"name":"bodybuilder","full_name":"ronak/bodybuilder","owner":{"login":"ronak","id":279931,"avatar_url":"https://avatars.githubusercontent.com/u/279931?v=3","gravatar_id":"","url":"https://api.github.com/users/ronak","html_url":"https://github.com/ronak","followers_url":"https://api.github.com/users/ronak/followers","following_url":"https://api.github.com/users/ronak/following{/other_user}","gists_url":"https://api.github.com/users/ronak/gists{/gist_id}","starred_url":"https://api.github.com/users/ronak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronak/subscriptions","organizations_url":"https://api.github.com/users/ronak/orgs","repos_url":"https://api.github.com/users/ronak/repos","events_url":"https://api.github.com/users/ronak/events{/privacy}","received_events_url":"https://api.github.com/users/ronak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ronak/bodybuilder","description":"An elasticsearch query body builder :muscle:","fork":true,"url":"https://api.github.com/repos/ronak/bodybuilder","forks_url":"https://api.github.com/repos/ronak/bodybuilder/forks","keys_url":"https://api.github.com/repos/ronak/bodybuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ronak/bodybuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ronak/bodybuilder/teams","hooks_url":"https://api.github.com/repos/ronak/bodybuilder/hooks","issue_events_url":"https://api.github.com/repos/ronak/bodybuilder/issues/events{/number}","events_url":"https://api.github.com/repos/ronak/bodybuilder/events","assignees_url":"https://api.github.com/repos/ronak/bodybuilder/assignees{/user}","branches_url":"https://api.github.com/repos/ronak/bodybuilder/branches{/branch}","tags_url":"https://api.github.com/repos/ronak/bodybuilder/tags","blobs_url":"https://api.github.com/repos/ronak/bodybuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ronak/bodybuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ronak/bodybuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/ronak/bodybuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ronak/bodybuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/ronak/bodybuilder/languages","stargazers_url":"https://api.github.com/repos/ronak/bodybuilder/stargazers","contributors_url":"https://api.github.com/repos/ronak/bodybuilder/contributors","subscribers_url":"https://api.github.com/repos/ronak/bodybuilder/subscribers","subscription_url":"https://api.github.com/repos/ronak/bodybuilder/subscription","commits_url":"https://api.github.com/repos/ronak/bodybuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/ronak/bodybuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/ronak/bodybuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/ronak/bodybuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/ronak/bodybuilder/contents/{+path}","compare_url":"https://api.github.com/repos/ronak/bodybuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ronak/bodybuilder/merges","archive_url":"https://api.github.com/repos/ronak/bodybuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ronak/bodybuilder/downloads","issues_url":"https://api.github.com/repos/ronak/bodybuilder/issues{/number}","pulls_url":"https://api.github.com/repos/ronak/bodybuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/ronak/bodybuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/ronak/bodybuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ronak/bodybuilder/labels{/name}","releases_url":"https://api.github.com/repos/ronak/bodybuilder/releases{/id}","deployments_url":"https://api.github.com/repos/ronak/bodybuilder/deployments","created_at":"2016-05-01T21:41:37Z","updated_at":"2016-05-01T21:41:38Z","pushed_at":"2016-05-02T03:23:01Z","git_url":"git://github.com/ronak/bodybuilder.git","ssh_url":"git@github.com:ronak/bodybuilder.git","clone_url":"https://github.com/ronak/bodybuilder.git","svn_url":"https://github.com/ronak/bodybuilder","homepage":"","size":215,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"danpaz:master","ref":"master","sha":"694570f1773d80b51f45f02dfc7f83f6a42572aa","user":{"login":"danpaz","id":5665333,"avatar_url":"https://avatars.githubusercontent.com/u/5665333?v=3","gravatar_id":"","url":"https://api.github.com/users/danpaz","html_url":"https://github.com/danpaz","followers_url":"https://api.github.com/users/danpaz/followers","following_url":"https://api.github.com/users/danpaz/following{/other_user}","gists_url":"https://api.github.com/users/danpaz/gists{/gist_id}","starred_url":"https://api.github.com/users/danpaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpaz/subscriptions","organizations_url":"https://api.github.com/users/danpaz/orgs","repos_url":"https://api.github.com/users/danpaz/repos","events_url":"https://api.github.com/users/danpaz/events{/privacy}","received_events_url":"https://api.github.com/users/danpaz/received_events","type":"User","site_admin":false},"repo":{"id":40519241,"name":"bodybuilder","full_name":"danpaz/bodybuilder","owner":{"login":"danpaz","id":5665333,"avatar_url":"https://avatars.githubusercontent.com/u/5665333?v=3","gravatar_id":"","url":"https://api.github.com/users/danpaz","html_url":"https://github.com/danpaz","followers_url":"https://api.github.com/users/danpaz/followers","following_url":"https://api.github.com/users/danpaz/following{/other_user}","gists_url":"https://api.github.com/users/danpaz/gists{/gist_id}","starred_url":"https://api.github.com/users/danpaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpaz/subscriptions","organizations_url":"https://api.github.com/users/danpaz/orgs","repos_url":"https://api.github.com/users/danpaz/repos","events_url":"https://api.github.com/users/danpaz/events{/privacy}","received_events_url":"https://api.github.com/users/danpaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danpaz/bodybuilder","description":"An elasticsearch query body builder :muscle:","fork":false,"url":"https://api.github.com/repos/danpaz/bodybuilder","forks_url":"https://api.github.com/repos/danpaz/bodybuilder/forks","keys_url":"https://api.github.com/repos/danpaz/bodybuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danpaz/bodybuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danpaz/bodybuilder/teams","hooks_url":"https://api.github.com/repos/danpaz/bodybuilder/hooks","issue_events_url":"https://api.github.com/repos/danpaz/bodybuilder/issues/events{/number}","events_url":"https://api.github.com/repos/danpaz/bodybuilder/events","assignees_url":"https://api.github.com/repos/danpaz/bodybuilder/assignees{/user}","branches_url":"https://api.github.com/repos/danpaz/bodybuilder/branches{/branch}","tags_url":"https://api.github.com/repos/danpaz/bodybuilder/tags","blobs_url":"https://api.github.com/repos/danpaz/bodybuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danpaz/bodybuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danpaz/bodybuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/danpaz/bodybuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danpaz/bodybuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/danpaz/bodybuilder/languages","stargazers_url":"https://api.github.com/repos/danpaz/bodybuilder/stargazers","contributors_url":"https://api.github.com/repos/danpaz/bodybuilder/contributors","subscribers_url":"https://api.github.com/repos/danpaz/bodybuilder/subscribers","subscription_url":"https://api.github.com/repos/danpaz/bodybuilder/subscription","commits_url":"https://api.github.com/repos/danpaz/bodybuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/danpaz/bodybuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/danpaz/bodybuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/danpaz/bodybuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/danpaz/bodybuilder/contents/{+path}","compare_url":"https://api.github.com/repos/danpaz/bodybuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danpaz/bodybuilder/merges","archive_url":"https://api.github.com/repos/danpaz/bodybuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danpaz/bodybuilder/downloads","issues_url":"https://api.github.com/repos/danpaz/bodybuilder/issues{/number}","pulls_url":"https://api.github.com/repos/danpaz/bodybuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/danpaz/bodybuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/danpaz/bodybuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danpaz/bodybuilder/labels{/name}","releases_url":"https://api.github.com/repos/danpaz/bodybuilder/releases{/id}","deployments_url":"https://api.github.com/repos/danpaz/bodybuilder/deployments","created_at":"2015-08-11T03:27:19Z","updated_at":"2016-05-04T12:35:21Z","pushed_at":"2016-05-01T22:54:05Z","git_url":"git://github.com/danpaz/bodybuilder.git","ssh_url":"git@github.com:danpaz/bodybuilder.git","clone_url":"https://github.com/danpaz/bodybuilder.git","svn_url":"https://github.com/danpaz/bodybuilder","homepage":"","size":242,"stargazers_count":104,"watchers_count":104,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":104,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danpaz/bodybuilder/pulls/27"},"html":{"href":"https://github.com/danpaz/bodybuilder/pull/27"},"issue":{"href":"https://api.github.com/repos/danpaz/bodybuilder/issues/27"},"comments":{"href":"https://api.github.com/repos/danpaz/bodybuilder/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/danpaz/bodybuilder/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/danpaz/bodybuilder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danpaz/bodybuilder/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/danpaz/bodybuilder/statuses/c9b33e6454f4441ef0a17847a9b58dfb973f4973"}}}}