{"action":"created","comment":{"url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/comments/24741681","id":24741681,"diff_hunk":"@@ -185,12 +186,42 @@ public function search(SearchQuery $searchQuery)\n \n     public function getStatus()\n     {\n-        $indices = $this->client->indices()->status(array('index' => '_all'));\n+        $indexes = $this->listIndexes();\n \n-        foreach ($indices as $indexName => $index) {\n-            $status['idx:' . $indexName] = json_encode($index);\n+        foreach ($indexes as $indexName => $index) {\n+            foreach ($index as $field => $value) {\n+                $status['idx:' . $indexName . '.' . $field] = substr(trim(json_encode($value)), 0, 100);\n+            }\n         }\n \n         return $status;\n     }\n+\n+    public function purge($indexName)","path":"Search/Adapter/ElasticSearchAdapter.php","position":46,"original_position":46,"commit_id":"02ae4a7b79e591024621cad9b8ef0ec1e6d3da6b","original_commit_id":"02ae4a7b79e591024621cad9b8ef0ec1e6d3da6b","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=3","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"Docs for this class.","created_at":"2015-02-16T10:15:55Z","updated_at":"2015-02-16T10:15:55Z","html_url":"https://github.com/massiveart/MassiveSearchBundle/pull/18#discussion_r24741681","pull_request_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/comments/24741681"},"html":{"href":"https://github.com/massiveart/MassiveSearchBundle/pull/18#discussion_r24741681"},"pull_request":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/18","id":28102164,"html_url":"https://github.com/massiveart/MassiveSearchBundle/pull/18","diff_url":"https://github.com/massiveart/MassiveSearchBundle/pull/18.diff","patch_url":"https://github.com/massiveart/MassiveSearchBundle/pull/18.patch","issue_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/18","number":18,"state":"open","locked":false,"title":"Feature/rest api","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=3","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"This PR adds a Doctrine ORM subscriber, REST API and ExpressionLanaugage.\r\n\r\nThe aim of the PR is to allow searching in the backoffice of the Sulu CMF. For this we need to map Doctrine entities, generate URLs and provide different mappings for the front/back office.\r\n\r\nThe SearchBundle should also provide either a list of indexes, or a list of \"search categories\" which are mapped internally to search indexes.\r\n\r\n- The Doctrine ORM subscriber will automatically index/deindex mapped ORM documents.\r\n- The REST API provides a simple controller to perform a search query using parameters `query`, `index` and `locale` and receieve a JSON response.\r\n\r\nTodo\r\n\r\n- [ ] Documentation\r\n- [ ] API to retrieve valid indexes (or maybe that should be defined elsewhere?)\r\n- [x] ORM subscriber DI Configuration + tag\r\n- [x] Expression language support (for generating URLs)\r\n- [ ] Context support (in the mapping)","created_at":"2015-01-27T11:44:40Z","updated_at":"2015-02-16T10:15:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37acab574102c57cda8e4aa476ce468879bf3730","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/18/commits","review_comments_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/18/comments","review_comment_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/comments/{number}","comments_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/18/comments","statuses_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/statuses/02ae4a7b79e591024621cad9b8ef0ec1e6d3da6b","head":{"label":"massiveart:feature/rest-api","ref":"feature/rest-api","sha":"02ae4a7b79e591024621cad9b8ef0ec1e6d3da6b","user":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"repo":{"id":23216604,"name":"MassiveSearchBundle","full_name":"massiveart/MassiveSearchBundle","owner":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/massiveart/MassiveSearchBundle","description":"","fork":false,"url":"https://api.github.com/repos/massiveart/MassiveSearchBundle","forks_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/forks","keys_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/teams","hooks_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/hooks","issue_events_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/events{/number}","events_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/events","assignees_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/assignees{/user}","branches_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/branches{/branch}","tags_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/tags","blobs_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/languages","stargazers_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/stargazers","contributors_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/contributors","subscribers_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/subscribers","subscription_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/subscription","commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/contents/{+path}","compare_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/merges","archive_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/downloads","issues_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues{/number}","pulls_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/labels{/name}","releases_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/releases{/id}","created_at":"2014-08-22T07:19:25Z","updated_at":"2015-02-06T10:21:45Z","pushed_at":"2015-02-16T10:08:49Z","git_url":"git://github.com/massiveart/MassiveSearchBundle.git","ssh_url":"git@github.com:massiveart/MassiveSearchBundle.git","clone_url":"https://github.com/massiveart/MassiveSearchBundle.git","svn_url":"https://github.com/massiveart/MassiveSearchBundle","homepage":null,"size":912,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"develop"}},"base":{"label":"massiveart:develop","ref":"develop","sha":"8023d43e1eb6d0df34d300bf909d9c37b8500c3c","user":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"repo":{"id":23216604,"name":"MassiveSearchBundle","full_name":"massiveart/MassiveSearchBundle","owner":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/massiveart/MassiveSearchBundle","description":"","fork":false,"url":"https://api.github.com/repos/massiveart/MassiveSearchBundle","forks_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/forks","keys_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/teams","hooks_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/hooks","issue_events_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/events{/number}","events_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/events","assignees_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/assignees{/user}","branches_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/branches{/branch}","tags_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/tags","blobs_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/languages","stargazers_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/stargazers","contributors_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/contributors","subscribers_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/subscribers","subscription_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/subscription","commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/contents/{+path}","compare_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/merges","archive_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/downloads","issues_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues{/number}","pulls_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/labels{/name}","releases_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/releases{/id}","created_at":"2014-08-22T07:19:25Z","updated_at":"2015-02-06T10:21:45Z","pushed_at":"2015-02-16T10:08:49Z","git_url":"git://github.com/massiveart/MassiveSearchBundle.git","ssh_url":"git@github.com:massiveart/MassiveSearchBundle.git","clone_url":"https://github.com/massiveart/MassiveSearchBundle.git","svn_url":"https://github.com/massiveart/MassiveSearchBundle","homepage":null,"size":912,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/18"},"html":{"href":"https://github.com/massiveart/MassiveSearchBundle/pull/18"},"issue":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/18"},"comments":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/statuses/02ae4a7b79e591024621cad9b8ef0ec1e6d3da6b"}}}}