{"action":"created","comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments/36234992","id":36234992,"diff_hunk":"@@ -388,6 +392,14 @@ public int getTotalNumberOfShards() {\n         return totalNumberOfShards();\n     }\n \n+    public boolean slowLoggingSource() {","path":"core/src/main/java/org/elasticsearch/cluster/metadata/IndexMetaData.java","position":31,"original_position":31,"commit_id":"2965c4f7c24e456e70c15f355ea0f6d995f3f77f","original_commit_id":"c5eb3b135bc958cde11949ddebcb30a27637e8a7","user":{"login":"metadave","id":58244,"avatar_url":"https://avatars.githubusercontent.com/u/58244?v=3","gravatar_id":"","url":"https://api.github.com/users/metadave","html_url":"https://github.com/metadave","followers_url":"https://api.github.com/users/metadave/followers","following_url":"https://api.github.com/users/metadave/following{/other_user}","gists_url":"https://api.github.com/users/metadave/gists{/gist_id}","starred_url":"https://api.github.com/users/metadave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metadave/subscriptions","organizations_url":"https://api.github.com/users/metadave/orgs","repos_url":"https://api.github.com/users/metadave/repos","events_url":"https://api.github.com/users/metadave/events{/privacy}","received_events_url":"https://api.github.com/users/metadave/received_events","type":"User","site_admin":false},"body":"probably not. I copied the style of the other settings","created_at":"2015-08-04T20:09:05Z","updated_at":"2015-08-04T20:09:05Z","html_url":"https://github.com/elastic/elasticsearch/pull/12655#discussion_r36234992","pull_request_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/12655","_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments/36234992"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/12655#discussion_r36234992"},"pull_request":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/12655"}}},"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/12655","id":41611239,"html_url":"https://github.com/elastic/elasticsearch/pull/12655","diff_url":"https://github.com/elastic/elasticsearch/pull/12655.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/12655.patch","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12655","number":12655,"state":"open","locked":false,"title":"Adds a setting to disable source output in slowlog","user":{"login":"metadave","id":58244,"avatar_url":"https://avatars.githubusercontent.com/u/58244?v=3","gravatar_id":"","url":"https://api.github.com/users/metadave","html_url":"https://github.com/metadave","followers_url":"https://api.github.com/users/metadave/followers","following_url":"https://api.github.com/users/metadave/following{/other_user}","gists_url":"https://api.github.com/users/metadave/gists{/gist_id}","starred_url":"https://api.github.com/users/metadave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metadave/subscriptions","organizations_url":"https://api.github.com/users/metadave/orgs","repos_url":"https://api.github.com/users/metadave/repos","events_url":"https://api.github.com/users/metadave/events{/privacy}","received_events_url":"https://api.github.com/users/metadave/received_events","type":"User","site_admin":false},"body":"When logging large documents via slowlog, setting `index.slow_logging.source`\r\nto `false` prevents the source from being displayed.\r\n\r\nCloses #4485 \r\n\r\nI don't see any tests for slowlog, so I used these steps to manually test:\r\n\r\n```\r\ncurl -XPUT 'http://localhost:9200/bar'\r\n\r\n# don't log source\r\ncurl -XPUT 'localhost:9200/bar/_settings' -d '\r\n{\r\n    \"index\" : {\r\n        \"slow_logging.source\" : false\r\n    }\r\n}'\r\n\r\n# bump the index threshold to 0s\r\ncurl -XPUT 'http://localhost:9200/bar/_settings' -d '\r\n{\r\n    \"index.search.slowlog.threshold.query.warn\" : \"10s\", \r\n    \"index.search.slowlog.threshold.fetch.debug\": \"500ms\", \r\n    \"index.indexing.slowlog.threshold.index.info\": \"0ms\" \r\n}'\r\n\r\n\r\n\r\ncurl -XPUT 'http://localhost:9200/bar/tweet/2' -d '\r\n{\r\n    \"user\": \"kimchy\",\r\n    \"postDate\": \"2009-11-15T13:12:00\",\r\n    \"message\": \"Trying out Elasticsearch, so far so good?\"\r\n}'\r\n\r\n\r\ncurl -XPUT 'localhost:9200/bar/_settings' -d '\r\n{\r\n    \"index\" : {\r\n        \"slow_logging.source\" : true\r\n    }\r\n}'\r\n\r\n\r\ncurl -XPUT 'http://localhost:9200/bar/tweet/3' -d '\r\n{\r\n    \"user\": \"kimchy\",\r\n    \"postDate\": \"2009-11-15T13:12:00\",\r\n    \"message\": \"Foo bar baz\"\r\n}'\r\n\r\n```","created_at":"2015-08-04T20:05:06Z","updated_at":"2015-08-04T20:09:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e288735bde79e127d6ef3ff36882a6e24b58c12","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/12655/commits","review_comments_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/12655/comments","review_comment_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12655/comments","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/2965c4f7c24e456e70c15f355ea0f6d995f3f77f","head":{"label":"metadave:dp_slowlog_source","ref":"dp_slowlog_source","sha":"2965c4f7c24e456e70c15f355ea0f6d995f3f77f","user":{"login":"metadave","id":58244,"avatar_url":"https://avatars.githubusercontent.com/u/58244?v=3","gravatar_id":"","url":"https://api.github.com/users/metadave","html_url":"https://github.com/metadave","followers_url":"https://api.github.com/users/metadave/followers","following_url":"https://api.github.com/users/metadave/following{/other_user}","gists_url":"https://api.github.com/users/metadave/gists{/gist_id}","starred_url":"https://api.github.com/users/metadave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metadave/subscriptions","organizations_url":"https://api.github.com/users/metadave/orgs","repos_url":"https://api.github.com/users/metadave/repos","events_url":"https://api.github.com/users/metadave/events{/privacy}","received_events_url":"https://api.github.com/users/metadave/received_events","type":"User","site_admin":false},"repo":{"id":39779348,"name":"elasticsearch","full_name":"metadave/elasticsearch","owner":{"login":"metadave","id":58244,"avatar_url":"https://avatars.githubusercontent.com/u/58244?v=3","gravatar_id":"","url":"https://api.github.com/users/metadave","html_url":"https://github.com/metadave","followers_url":"https://api.github.com/users/metadave/followers","following_url":"https://api.github.com/users/metadave/following{/other_user}","gists_url":"https://api.github.com/users/metadave/gists{/gist_id}","starred_url":"https://api.github.com/users/metadave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metadave/subscriptions","organizations_url":"https://api.github.com/users/metadave/orgs","repos_url":"https://api.github.com/users/metadave/repos","events_url":"https://api.github.com/users/metadave/events{/privacy}","received_events_url":"https://api.github.com/users/metadave/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/metadave/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":true,"url":"https://api.github.com/repos/metadave/elasticsearch","forks_url":"https://api.github.com/repos/metadave/elasticsearch/forks","keys_url":"https://api.github.com/repos/metadave/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metadave/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metadave/elasticsearch/teams","hooks_url":"https://api.github.com/repos/metadave/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/metadave/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/metadave/elasticsearch/events","assignees_url":"https://api.github.com/repos/metadave/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/metadave/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/metadave/elasticsearch/tags","blobs_url":"https://api.github.com/repos/metadave/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metadave/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metadave/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/metadave/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metadave/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/metadave/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/metadave/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/metadave/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/metadave/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/metadave/elasticsearch/subscription","commits_url":"https://api.github.com/repos/metadave/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/metadave/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/metadave/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/metadave/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/metadave/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/metadave/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metadave/elasticsearch/merges","archive_url":"https://api.github.com/repos/metadave/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metadave/elasticsearch/downloads","issues_url":"https://api.github.com/repos/metadave/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/metadave/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/metadave/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/metadave/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metadave/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/metadave/elasticsearch/releases{/id}","created_at":"2015-07-27T14:37:53Z","updated_at":"2015-07-27T14:38:13Z","pushed_at":"2015-08-04T20:08:28Z","git_url":"git://github.com/metadave/elasticsearch.git","ssh_url":"git@github.com:metadave/elasticsearch.git","clone_url":"https://github.com/metadave/elasticsearch.git","svn_url":"https://github.com/metadave/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":150439,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"elastic:master","ref":"master","sha":"cf6acbd7c202427c22578f70b9cfec78c9ba0ff2","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":507775,"name":"elasticsearch","full_name":"elastic/elasticsearch","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":false,"url":"https://api.github.com/repos/elastic/elasticsearch","forks_url":"https://api.github.com/repos/elastic/elasticsearch/forks","keys_url":"https://api.github.com/repos/elastic/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/elasticsearch/teams","hooks_url":"https://api.github.com/repos/elastic/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/elasticsearch/events","assignees_url":"https://api.github.com/repos/elastic/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/elasticsearch/tags","blobs_url":"https://api.github.com/repos/elastic/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/elastic/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/elastic/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/elastic/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/elastic/elasticsearch/subscription","commits_url":"https://api.github.com/repos/elastic/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/elasticsearch/merges","archive_url":"https://api.github.com/repos/elastic/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/elasticsearch/downloads","issues_url":"https://api.github.com/repos/elastic/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/elastic/elasticsearch/releases{/id}","created_at":"2010-02-08T13:20:56Z","updated_at":"2015-08-04T19:48:16Z","pushed_at":"2015-08-04T20:08:35Z","git_url":"git://github.com/elastic/elasticsearch.git","ssh_url":"git@github.com:elastic/elasticsearch.git","clone_url":"https://github.com/elastic/elasticsearch.git","svn_url":"https://github.com/elastic/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":1918829,"stargazers_count":12211,"watchers_count":12211,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3912,"mirror_url":null,"open_issues_count":1188,"forks":3912,"open_issues":1188,"watchers":12211,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/12655"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/12655"},"issue":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/12655"},"comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/12655/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/12655/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/12655/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/elasticsearch/statuses/2965c4f7c24e456e70c15f355ea0f6d995f3f77f"}}}}