{"action":"created","comment":{"url":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/comments/56984905","id":56984905,"diff_hunk":"@@ -211,12 +211,19 @@ private Object getPropertyValue(final Document document, final PropertyDescripto\n \n     @Override\n     public void delete(final Document document) {\n-        final DocumentConfiguration documentConfiguration = getDocumentConfiguration(document.getClass());\n-        final String searchDomain = documentConfigurationHolder.schemaName() + \"-\" + documentConfiguration.namespace();\n-        final BatchDocumentUpdateRequest batchDocumentUpdateRequest = new BatchDocumentUpdateRequest(searchDomain);\n-        final DocumentUpdate csDocument = new DocumentUpdate(Type.DELETE, document.getId());\n-        batchDocumentUpdateRequest.withDocument(csDocument);\n-        getDocumentServiceClient(searchDomain).uploadDocuments(uploadDocumentsRequest(batchDocumentUpdateRequest));\n+        delete(Arrays.asList(document), document.getClass());\n+    }\n+    \n+    @Override\n+    public void delete(final Collection<? extends Document> documents, final Class<? extends Document> documentClass) {","path":"cheddar/cheddar-integration-aws/src/main/java/com/clicktravel/infrastructure/persistence/aws/cloudsearch/CloudSearchEngine.java","position":14,"original_position":14,"commit_id":"e2279a0ff0be796255291c7104b1f2a23e69fa7a","original_commit_id":"e2279a0ff0be796255291c7104b1f2a23e69fa7a","user":{"login":"clicktravel-basharat","id":4687263,"avatar_url":"https://avatars.githubusercontent.com/u/4687263?v=3","gravatar_id":"","url":"https://api.github.com/users/clicktravel-basharat","html_url":"https://github.com/clicktravel-basharat","followers_url":"https://api.github.com/users/clicktravel-basharat/followers","following_url":"https://api.github.com/users/clicktravel-basharat/following{/other_user}","gists_url":"https://api.github.com/users/clicktravel-basharat/gists{/gist_id}","starred_url":"https://api.github.com/users/clicktravel-basharat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clicktravel-basharat/subscriptions","organizations_url":"https://api.github.com/users/clicktravel-basharat/orgs","repos_url":"https://api.github.com/users/clicktravel-basharat/repos","events_url":"https://api.github.com/users/clicktravel-basharat/events{/privacy}","received_events_url":"https://api.github.com/users/clicktravel-basharat/received_events","type":"User","site_admin":false},"body":"Can't you get the class from the first item and throw an exception if they are not all the same?","created_at":"2016-03-22T13:28:39Z","updated_at":"2016-03-22T13:28:39Z","html_url":"https://github.com/ClickTravel/Cheddar/pull/146#discussion_r56984905","pull_request_url":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/146","_links":{"self":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/comments/56984905"},"html":{"href":"https://github.com/ClickTravel/Cheddar/pull/146#discussion_r56984905"},"pull_request":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/146","id":63718786,"html_url":"https://github.com/ClickTravel/Cheddar/pull/146","diff_url":"https://github.com/ClickTravel/Cheddar/pull/146.diff","patch_url":"https://github.com/ClickTravel/Cheddar/pull/146.patch","issue_url":"https://api.github.com/repos/ClickTravel/Cheddar/issues/146","number":146,"state":"open","locked":false,"title":"Added functionality for deleting many documents at a time","user":{"login":"click-alexvladut","id":16411723,"avatar_url":"https://avatars.githubusercontent.com/u/16411723?v=3","gravatar_id":"","url":"https://api.github.com/users/click-alexvladut","html_url":"https://github.com/click-alexvladut","followers_url":"https://api.github.com/users/click-alexvladut/followers","following_url":"https://api.github.com/users/click-alexvladut/following{/other_user}","gists_url":"https://api.github.com/users/click-alexvladut/gists{/gist_id}","starred_url":"https://api.github.com/users/click-alexvladut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/click-alexvladut/subscriptions","organizations_url":"https://api.github.com/users/click-alexvladut/orgs","repos_url":"https://api.github.com/users/click-alexvladut/repos","events_url":"https://api.github.com/users/click-alexvladut/events{/privacy}","received_events_url":"https://api.github.com/users/click-alexvladut/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-22T13:25:58Z","updated_at":"2016-03-22T13:28:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58a47bfb8c7f1e5d069f10b0e020bd719ac4dbb1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/146/commits","review_comments_url":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/146/comments","review_comment_url":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ClickTravel/Cheddar/issues/146/comments","statuses_url":"https://api.github.com/repos/ClickTravel/Cheddar/statuses/e2279a0ff0be796255291c7104b1f2a23e69fa7a","head":{"label":"click-alexvladut:master","ref":"master","sha":"e2279a0ff0be796255291c7104b1f2a23e69fa7a","user":{"login":"click-alexvladut","id":16411723,"avatar_url":"https://avatars.githubusercontent.com/u/16411723?v=3","gravatar_id":"","url":"https://api.github.com/users/click-alexvladut","html_url":"https://github.com/click-alexvladut","followers_url":"https://api.github.com/users/click-alexvladut/followers","following_url":"https://api.github.com/users/click-alexvladut/following{/other_user}","gists_url":"https://api.github.com/users/click-alexvladut/gists{/gist_id}","starred_url":"https://api.github.com/users/click-alexvladut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/click-alexvladut/subscriptions","organizations_url":"https://api.github.com/users/click-alexvladut/orgs","repos_url":"https://api.github.com/users/click-alexvladut/repos","events_url":"https://api.github.com/users/click-alexvladut/events{/privacy}","received_events_url":"https://api.github.com/users/click-alexvladut/received_events","type":"User","site_admin":false},"repo":{"id":52966461,"name":"Cheddar","full_name":"click-alexvladut/Cheddar","owner":{"login":"click-alexvladut","id":16411723,"avatar_url":"https://avatars.githubusercontent.com/u/16411723?v=3","gravatar_id":"","url":"https://api.github.com/users/click-alexvladut","html_url":"https://github.com/click-alexvladut","followers_url":"https://api.github.com/users/click-alexvladut/followers","following_url":"https://api.github.com/users/click-alexvladut/following{/other_user}","gists_url":"https://api.github.com/users/click-alexvladut/gists{/gist_id}","starred_url":"https://api.github.com/users/click-alexvladut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/click-alexvladut/subscriptions","organizations_url":"https://api.github.com/users/click-alexvladut/orgs","repos_url":"https://api.github.com/users/click-alexvladut/repos","events_url":"https://api.github.com/users/click-alexvladut/events{/privacy}","received_events_url":"https://api.github.com/users/click-alexvladut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/click-alexvladut/Cheddar","description":"Click's Hexagonal Domain Driven Architecture","fork":true,"url":"https://api.github.com/repos/click-alexvladut/Cheddar","forks_url":"https://api.github.com/repos/click-alexvladut/Cheddar/forks","keys_url":"https://api.github.com/repos/click-alexvladut/Cheddar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/click-alexvladut/Cheddar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/click-alexvladut/Cheddar/teams","hooks_url":"https://api.github.com/repos/click-alexvladut/Cheddar/hooks","issue_events_url":"https://api.github.com/repos/click-alexvladut/Cheddar/issues/events{/number}","events_url":"https://api.github.com/repos/click-alexvladut/Cheddar/events","assignees_url":"https://api.github.com/repos/click-alexvladut/Cheddar/assignees{/user}","branches_url":"https://api.github.com/repos/click-alexvladut/Cheddar/branches{/branch}","tags_url":"https://api.github.com/repos/click-alexvladut/Cheddar/tags","blobs_url":"https://api.github.com/repos/click-alexvladut/Cheddar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/click-alexvladut/Cheddar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/click-alexvladut/Cheddar/git/refs{/sha}","trees_url":"https://api.github.com/repos/click-alexvladut/Cheddar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/click-alexvladut/Cheddar/statuses/{sha}","languages_url":"https://api.github.com/repos/click-alexvladut/Cheddar/languages","stargazers_url":"https://api.github.com/repos/click-alexvladut/Cheddar/stargazers","contributors_url":"https://api.github.com/repos/click-alexvladut/Cheddar/contributors","subscribers_url":"https://api.github.com/repos/click-alexvladut/Cheddar/subscribers","subscription_url":"https://api.github.com/repos/click-alexvladut/Cheddar/subscription","commits_url":"https://api.github.com/repos/click-alexvladut/Cheddar/commits{/sha}","git_commits_url":"https://api.github.com/repos/click-alexvladut/Cheddar/git/commits{/sha}","comments_url":"https://api.github.com/repos/click-alexvladut/Cheddar/comments{/number}","issue_comment_url":"https://api.github.com/repos/click-alexvladut/Cheddar/issues/comments{/number}","contents_url":"https://api.github.com/repos/click-alexvladut/Cheddar/contents/{+path}","compare_url":"https://api.github.com/repos/click-alexvladut/Cheddar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/click-alexvladut/Cheddar/merges","archive_url":"https://api.github.com/repos/click-alexvladut/Cheddar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/click-alexvladut/Cheddar/downloads","issues_url":"https://api.github.com/repos/click-alexvladut/Cheddar/issues{/number}","pulls_url":"https://api.github.com/repos/click-alexvladut/Cheddar/pulls{/number}","milestones_url":"https://api.github.com/repos/click-alexvladut/Cheddar/milestones{/number}","notifications_url":"https://api.github.com/repos/click-alexvladut/Cheddar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/click-alexvladut/Cheddar/labels{/name}","releases_url":"https://api.github.com/repos/click-alexvladut/Cheddar/releases{/id}","deployments_url":"https://api.github.com/repos/click-alexvladut/Cheddar/deployments","created_at":"2016-03-02T13:53:20Z","updated_at":"2016-03-02T13:53:23Z","pushed_at":"2016-03-22T13:24:37Z","git_url":"git://github.com/click-alexvladut/Cheddar.git","ssh_url":"git@github.com:click-alexvladut/Cheddar.git","clone_url":"https://github.com/click-alexvladut/Cheddar.git","svn_url":"https://github.com/click-alexvladut/Cheddar","homepage":null,"size":1288,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"ClickTravel:master","ref":"master","sha":"a7b5b82732e00c1fc69bd9d0ca51121da99ff063","user":{"login":"ClickTravel","id":885969,"avatar_url":"https://avatars.githubusercontent.com/u/885969?v=3","gravatar_id":"","url":"https://api.github.com/users/ClickTravel","html_url":"https://github.com/ClickTravel","followers_url":"https://api.github.com/users/ClickTravel/followers","following_url":"https://api.github.com/users/ClickTravel/following{/other_user}","gists_url":"https://api.github.com/users/ClickTravel/gists{/gist_id}","starred_url":"https://api.github.com/users/ClickTravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClickTravel/subscriptions","organizations_url":"https://api.github.com/users/ClickTravel/orgs","repos_url":"https://api.github.com/users/ClickTravel/repos","events_url":"https://api.github.com/users/ClickTravel/events{/privacy}","received_events_url":"https://api.github.com/users/ClickTravel/received_events","type":"Organization","site_admin":false},"repo":{"id":22964867,"name":"Cheddar","full_name":"ClickTravel/Cheddar","owner":{"login":"ClickTravel","id":885969,"avatar_url":"https://avatars.githubusercontent.com/u/885969?v=3","gravatar_id":"","url":"https://api.github.com/users/ClickTravel","html_url":"https://github.com/ClickTravel","followers_url":"https://api.github.com/users/ClickTravel/followers","following_url":"https://api.github.com/users/ClickTravel/following{/other_user}","gists_url":"https://api.github.com/users/ClickTravel/gists{/gist_id}","starred_url":"https://api.github.com/users/ClickTravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClickTravel/subscriptions","organizations_url":"https://api.github.com/users/ClickTravel/orgs","repos_url":"https://api.github.com/users/ClickTravel/repos","events_url":"https://api.github.com/users/ClickTravel/events{/privacy}","received_events_url":"https://api.github.com/users/ClickTravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ClickTravel/Cheddar","description":"Click's Hexagonal Domain Driven Architecture","fork":false,"url":"https://api.github.com/repos/ClickTravel/Cheddar","forks_url":"https://api.github.com/repos/ClickTravel/Cheddar/forks","keys_url":"https://api.github.com/repos/ClickTravel/Cheddar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClickTravel/Cheddar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClickTravel/Cheddar/teams","hooks_url":"https://api.github.com/repos/ClickTravel/Cheddar/hooks","issue_events_url":"https://api.github.com/repos/ClickTravel/Cheddar/issues/events{/number}","events_url":"https://api.github.com/repos/ClickTravel/Cheddar/events","assignees_url":"https://api.github.com/repos/ClickTravel/Cheddar/assignees{/user}","branches_url":"https://api.github.com/repos/ClickTravel/Cheddar/branches{/branch}","tags_url":"https://api.github.com/repos/ClickTravel/Cheddar/tags","blobs_url":"https://api.github.com/repos/ClickTravel/Cheddar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClickTravel/Cheddar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClickTravel/Cheddar/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClickTravel/Cheddar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClickTravel/Cheddar/statuses/{sha}","languages_url":"https://api.github.com/repos/ClickTravel/Cheddar/languages","stargazers_url":"https://api.github.com/repos/ClickTravel/Cheddar/stargazers","contributors_url":"https://api.github.com/repos/ClickTravel/Cheddar/contributors","subscribers_url":"https://api.github.com/repos/ClickTravel/Cheddar/subscribers","subscription_url":"https://api.github.com/repos/ClickTravel/Cheddar/subscription","commits_url":"https://api.github.com/repos/ClickTravel/Cheddar/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClickTravel/Cheddar/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClickTravel/Cheddar/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClickTravel/Cheddar/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClickTravel/Cheddar/contents/{+path}","compare_url":"https://api.github.com/repos/ClickTravel/Cheddar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClickTravel/Cheddar/merges","archive_url":"https://api.github.com/repos/ClickTravel/Cheddar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClickTravel/Cheddar/downloads","issues_url":"https://api.github.com/repos/ClickTravel/Cheddar/issues{/number}","pulls_url":"https://api.github.com/repos/ClickTravel/Cheddar/pulls{/number}","milestones_url":"https://api.github.com/repos/ClickTravel/Cheddar/milestones{/number}","notifications_url":"https://api.github.com/repos/ClickTravel/Cheddar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClickTravel/Cheddar/labels{/name}","releases_url":"https://api.github.com/repos/ClickTravel/Cheddar/releases{/id}","deployments_url":"https://api.github.com/repos/ClickTravel/Cheddar/deployments","created_at":"2014-08-14T18:50:56Z","updated_at":"2016-03-21T22:58:08Z","pushed_at":"2016-03-22T13:25:58Z","git_url":"git://github.com/ClickTravel/Cheddar.git","ssh_url":"git@github.com:ClickTravel/Cheddar.git","clone_url":"https://github.com/ClickTravel/Cheddar.git","svn_url":"https://github.com/ClickTravel/Cheddar","homepage":null,"size":1305,"stargazers_count":40,"watchers_count":40,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":2,"forks":21,"open_issues":2,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/146"},"html":{"href":"https://github.com/ClickTravel/Cheddar/pull/146"},"issue":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/issues/146"},"comments":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/ClickTravel/Cheddar/statuses/e2279a0ff0be796255291c7104b1f2a23e69fa7a"}}}}