{"action":"created","comment":{"url":"https://api.github.com/repos/socrata/cetera/pulls/comments/55465847","id":55465847,"diff_hunk":"@@ -134,15 +119,16 @@ class DocumentClient(\n           categoriesQuery(categories),\n           tagsQuery(tags))\n       }\n-\n-    val moderated = searchContext.exists(_.moderationEnabled)\n+    val contextMod = searchContext.exists(_.moderationEnabled)\n+    val (dIds, dMod, dUnmod, dRAOff) =","path":"cetera-http/src/main/scala/com/socrata/cetera/search/DocumentClient.scala","position":39,"original_position":58,"commit_id":"51bdc54fadeef2352bb6d396aa499addb186da25","original_commit_id":"bd518e38d1fedafe0779d0eedcadad32b46da87c","user":{"login":"jasonij","id":272820,"avatar_url":"https://avatars.githubusercontent.com/u/272820?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonij","html_url":"https://github.com/jasonij","followers_url":"https://api.github.com/users/jasonij/followers","following_url":"https://api.github.com/users/jasonij/following{/other_user}","gists_url":"https://api.github.com/users/jasonij/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonij/subscriptions","organizations_url":"https://api.github.com/users/jasonij/orgs","repos_url":"https://api.github.com/users/jasonij/repos","events_url":"https://api.github.com/users/jasonij/events{/privacy}","received_events_url":"https://api.github.com/users/jasonij/received_events","type":"User","site_admin":false},"body":"Yeah, wow.","created_at":"2016-03-09T02:47:16Z","updated_at":"2016-03-09T02:47:16Z","html_url":"https://github.com/socrata/cetera/pull/135#discussion_r55465847","pull_request_url":"https://api.github.com/repos/socrata/cetera/pulls/135","_links":{"self":{"href":"https://api.github.com/repos/socrata/cetera/pulls/comments/55465847"},"html":{"href":"https://github.com/socrata/cetera/pull/135#discussion_r55465847"},"pull_request":{"href":"https://api.github.com/repos/socrata/cetera/pulls/135"}}},"pull_request":{"url":"https://api.github.com/repos/socrata/cetera/pulls/135","id":62148241,"html_url":"https://github.com/socrata/cetera/pull/135","diff_url":"https://github.com/socrata/cetera/pull/135.diff","patch_url":"https://github.com/socrata/cetera/pull/135.patch","issue_url":"https://api.github.com/repos/socrata/cetera/issues/135","number":135,"state":"open","locked":false,"title":"domain norm refactor","user":{"login":"sokrahta","id":9438863,"avatar_url":"https://avatars.githubusercontent.com/u/9438863?v=3","gravatar_id":"","url":"https://api.github.com/users/sokrahta","html_url":"https://github.com/sokrahta","followers_url":"https://api.github.com/users/sokrahta/followers","following_url":"https://api.github.com/users/sokrahta/following{/other_user}","gists_url":"https://api.github.com/users/sokrahta/gists{/gist_id}","starred_url":"https://api.github.com/users/sokrahta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokrahta/subscriptions","organizations_url":"https://api.github.com/users/sokrahta/orgs","repos_url":"https://api.github.com/users/sokrahta/repos","events_url":"https://api.github.com/users/sokrahta/events{/privacy}","received_events_url":"https://api.github.com/users/sokrahta/received_events","type":"User","site_admin":false},"body":"**what it do**\r\n* remove has_parent filters from all the things\r\n  * perf: these changes improve response time by ~ 80%\r\n* query requests will still use a has_parent scored query\r\n  * because we don't want to duplicate all of lucene scoring in cetera\r\n\r\n**depends on**\r\n#134 \r\n\r\n<!-- Reviewable:start -->\r\n[<img src=\"https://reviewable.io/review_button.svg\" height=\"40\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/socrata/cetera/135)\r\n<!-- Reviewable:end -->\r\n","created_at":"2016-03-08T22:31:33Z","updated_at":"2016-03-09T02:47:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"923734f7b6b5b142e71a6875b04d7b6c7be1023f","assignee":{"login":"rlvoyer","id":172413,"avatar_url":"https://avatars.githubusercontent.com/u/172413?v=3","gravatar_id":"","url":"https://api.github.com/users/rlvoyer","html_url":"https://github.com/rlvoyer","followers_url":"https://api.github.com/users/rlvoyer/followers","following_url":"https://api.github.com/users/rlvoyer/following{/other_user}","gists_url":"https://api.github.com/users/rlvoyer/gists{/gist_id}","starred_url":"https://api.github.com/users/rlvoyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlvoyer/subscriptions","organizations_url":"https://api.github.com/users/rlvoyer/orgs","repos_url":"https://api.github.com/users/rlvoyer/repos","events_url":"https://api.github.com/users/rlvoyer/events{/privacy}","received_events_url":"https://api.github.com/users/rlvoyer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/socrata/cetera/pulls/135/commits","review_comments_url":"https://api.github.com/repos/socrata/cetera/pulls/135/comments","review_comment_url":"https://api.github.com/repos/socrata/cetera/pulls/comments{/number}","comments_url":"https://api.github.com/repos/socrata/cetera/issues/135/comments","statuses_url":"https://api.github.com/repos/socrata/cetera/statuses/51bdc54fadeef2352bb6d396aa499addb186da25","head":{"label":"socrata:krah/domainNormRefactor","ref":"krah/domainNormRefactor","sha":"51bdc54fadeef2352bb6d396aa499addb186da25","user":{"login":"socrata","id":57695,"avatar_url":"https://avatars.githubusercontent.com/u/57695?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata","html_url":"https://github.com/socrata","followers_url":"https://api.github.com/users/socrata/followers","following_url":"https://api.github.com/users/socrata/following{/other_user}","gists_url":"https://api.github.com/users/socrata/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata/subscriptions","organizations_url":"https://api.github.com/users/socrata/orgs","repos_url":"https://api.github.com/users/socrata/repos","events_url":"https://api.github.com/users/socrata/events{/privacy}","received_events_url":"https://api.github.com/users/socrata/received_events","type":"Organization","site_admin":false},"repo":{"id":29320951,"name":"cetera","full_name":"socrata/cetera","owner":{"login":"socrata","id":57695,"avatar_url":"https://avatars.githubusercontent.com/u/57695?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata","html_url":"https://github.com/socrata","followers_url":"https://api.github.com/users/socrata/followers","following_url":"https://api.github.com/users/socrata/following{/other_user}","gists_url":"https://api.github.com/users/socrata/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata/subscriptions","organizations_url":"https://api.github.com/users/socrata/orgs","repos_url":"https://api.github.com/users/socrata/repos","events_url":"https://api.github.com/users/socrata/events{/privacy}","received_events_url":"https://api.github.com/users/socrata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/socrata/cetera","description":"Cetera -- the golden-throated search service. Basically a wrapper around elasticsearch to enable keyword search to return dataset metadata for use by the front end in displaying search results.","fork":false,"url":"https://api.github.com/repos/socrata/cetera","forks_url":"https://api.github.com/repos/socrata/cetera/forks","keys_url":"https://api.github.com/repos/socrata/cetera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/socrata/cetera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/socrata/cetera/teams","hooks_url":"https://api.github.com/repos/socrata/cetera/hooks","issue_events_url":"https://api.github.com/repos/socrata/cetera/issues/events{/number}","events_url":"https://api.github.com/repos/socrata/cetera/events","assignees_url":"https://api.github.com/repos/socrata/cetera/assignees{/user}","branches_url":"https://api.github.com/repos/socrata/cetera/branches{/branch}","tags_url":"https://api.github.com/repos/socrata/cetera/tags","blobs_url":"https://api.github.com/repos/socrata/cetera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/socrata/cetera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/socrata/cetera/git/refs{/sha}","trees_url":"https://api.github.com/repos/socrata/cetera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/socrata/cetera/statuses/{sha}","languages_url":"https://api.github.com/repos/socrata/cetera/languages","stargazers_url":"https://api.github.com/repos/socrata/cetera/stargazers","contributors_url":"https://api.github.com/repos/socrata/cetera/contributors","subscribers_url":"https://api.github.com/repos/socrata/cetera/subscribers","subscription_url":"https://api.github.com/repos/socrata/cetera/subscription","commits_url":"https://api.github.com/repos/socrata/cetera/commits{/sha}","git_commits_url":"https://api.github.com/repos/socrata/cetera/git/commits{/sha}","comments_url":"https://api.github.com/repos/socrata/cetera/comments{/number}","issue_comment_url":"https://api.github.com/repos/socrata/cetera/issues/comments{/number}","contents_url":"https://api.github.com/repos/socrata/cetera/contents/{+path}","compare_url":"https://api.github.com/repos/socrata/cetera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/socrata/cetera/merges","archive_url":"https://api.github.com/repos/socrata/cetera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/socrata/cetera/downloads","issues_url":"https://api.github.com/repos/socrata/cetera/issues{/number}","pulls_url":"https://api.github.com/repos/socrata/cetera/pulls{/number}","milestones_url":"https://api.github.com/repos/socrata/cetera/milestones{/number}","notifications_url":"https://api.github.com/repos/socrata/cetera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/socrata/cetera/labels{/name}","releases_url":"https://api.github.com/repos/socrata/cetera/releases{/id}","deployments_url":"https://api.github.com/repos/socrata/cetera/deployments","created_at":"2015-01-15T22:15:58Z","updated_at":"2016-01-14T23:15:44Z","pushed_at":"2016-03-09T01:51:37Z","git_url":"git://github.com/socrata/cetera.git","ssh_url":"git@github.com:socrata/cetera.git","clone_url":"https://github.com/socrata/cetera.git","svn_url":"https://github.com/socrata/cetera","homepage":"","size":891,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":6,"default_branch":"master"}},"base":{"label":"socrata:krah/jmhPerf2","ref":"krah/jmhPerf2","sha":"2e9347e9a671d1217a23784c5d9517c6c81a92f6","user":{"login":"socrata","id":57695,"avatar_url":"https://avatars.githubusercontent.com/u/57695?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata","html_url":"https://github.com/socrata","followers_url":"https://api.github.com/users/socrata/followers","following_url":"https://api.github.com/users/socrata/following{/other_user}","gists_url":"https://api.github.com/users/socrata/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata/subscriptions","organizations_url":"https://api.github.com/users/socrata/orgs","repos_url":"https://api.github.com/users/socrata/repos","events_url":"https://api.github.com/users/socrata/events{/privacy}","received_events_url":"https://api.github.com/users/socrata/received_events","type":"Organization","site_admin":false},"repo":{"id":29320951,"name":"cetera","full_name":"socrata/cetera","owner":{"login":"socrata","id":57695,"avatar_url":"https://avatars.githubusercontent.com/u/57695?v=3","gravatar_id":"","url":"https://api.github.com/users/socrata","html_url":"https://github.com/socrata","followers_url":"https://api.github.com/users/socrata/followers","following_url":"https://api.github.com/users/socrata/following{/other_user}","gists_url":"https://api.github.com/users/socrata/gists{/gist_id}","starred_url":"https://api.github.com/users/socrata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socrata/subscriptions","organizations_url":"https://api.github.com/users/socrata/orgs","repos_url":"https://api.github.com/users/socrata/repos","events_url":"https://api.github.com/users/socrata/events{/privacy}","received_events_url":"https://api.github.com/users/socrata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/socrata/cetera","description":"Cetera -- the golden-throated search service. Basically a wrapper around elasticsearch to enable keyword search to return dataset metadata for use by the front end in displaying search results.","fork":false,"url":"https://api.github.com/repos/socrata/cetera","forks_url":"https://api.github.com/repos/socrata/cetera/forks","keys_url":"https://api.github.com/repos/socrata/cetera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/socrata/cetera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/socrata/cetera/teams","hooks_url":"https://api.github.com/repos/socrata/cetera/hooks","issue_events_url":"https://api.github.com/repos/socrata/cetera/issues/events{/number}","events_url":"https://api.github.com/repos/socrata/cetera/events","assignees_url":"https://api.github.com/repos/socrata/cetera/assignees{/user}","branches_url":"https://api.github.com/repos/socrata/cetera/branches{/branch}","tags_url":"https://api.github.com/repos/socrata/cetera/tags","blobs_url":"https://api.github.com/repos/socrata/cetera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/socrata/cetera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/socrata/cetera/git/refs{/sha}","trees_url":"https://api.github.com/repos/socrata/cetera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/socrata/cetera/statuses/{sha}","languages_url":"https://api.github.com/repos/socrata/cetera/languages","stargazers_url":"https://api.github.com/repos/socrata/cetera/stargazers","contributors_url":"https://api.github.com/repos/socrata/cetera/contributors","subscribers_url":"https://api.github.com/repos/socrata/cetera/subscribers","subscription_url":"https://api.github.com/repos/socrata/cetera/subscription","commits_url":"https://api.github.com/repos/socrata/cetera/commits{/sha}","git_commits_url":"https://api.github.com/repos/socrata/cetera/git/commits{/sha}","comments_url":"https://api.github.com/repos/socrata/cetera/comments{/number}","issue_comment_url":"https://api.github.com/repos/socrata/cetera/issues/comments{/number}","contents_url":"https://api.github.com/repos/socrata/cetera/contents/{+path}","compare_url":"https://api.github.com/repos/socrata/cetera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/socrata/cetera/merges","archive_url":"https://api.github.com/repos/socrata/cetera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/socrata/cetera/downloads","issues_url":"https://api.github.com/repos/socrata/cetera/issues{/number}","pulls_url":"https://api.github.com/repos/socrata/cetera/pulls{/number}","milestones_url":"https://api.github.com/repos/socrata/cetera/milestones{/number}","notifications_url":"https://api.github.com/repos/socrata/cetera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/socrata/cetera/labels{/name}","releases_url":"https://api.github.com/repos/socrata/cetera/releases{/id}","deployments_url":"https://api.github.com/repos/socrata/cetera/deployments","created_at":"2015-01-15T22:15:58Z","updated_at":"2016-01-14T23:15:44Z","pushed_at":"2016-03-09T01:51:37Z","git_url":"git://github.com/socrata/cetera.git","ssh_url":"git@github.com:socrata/cetera.git","clone_url":"https://github.com/socrata/cetera.git","svn_url":"https://github.com/socrata/cetera","homepage":"","size":891,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/socrata/cetera/pulls/135"},"html":{"href":"https://github.com/socrata/cetera/pull/135"},"issue":{"href":"https://api.github.com/repos/socrata/cetera/issues/135"},"comments":{"href":"https://api.github.com/repos/socrata/cetera/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/socrata/cetera/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/socrata/cetera/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/socrata/cetera/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/socrata/cetera/statuses/51bdc54fadeef2352bb6d396aa499addb186da25"}}}}