{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls/42","id":67680922,"html_url":"https://github.com/ezsystems/ezplatform-solr-search-engine/pull/42","diff_url":"https://github.com/ezsystems/ezplatform-solr-search-engine/pull/42.diff","patch_url":"https://github.com/ezsystems/ezplatform-solr-search-engine/pull/42.patch","issue_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/issues/42","number":42,"state":"open","locked":false,"title":"Implement indexing plugins","user":{"login":"pspanja","id":1135425,"avatar_url":"https://avatars.githubusercontent.com/u/1135425?v=3","gravatar_id":"","url":"https://api.github.com/users/pspanja","html_url":"https://github.com/pspanja","followers_url":"https://api.github.com/users/pspanja/followers","following_url":"https://api.github.com/users/pspanja/following{/other_user}","gists_url":"https://api.github.com/users/pspanja/gists{/gist_id}","starred_url":"https://api.github.com/users/pspanja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pspanja/subscriptions","organizations_url":"https://api.github.com/users/pspanja/orgs","repos_url":"https://api.github.com/users/pspanja/repos","events_url":"https://api.github.com/users/pspanja/events{/privacy}","received_events_url":"https://api.github.com/users/pspanja/received_events","type":"User","site_admin":false},"body":"This implements document field mappers, aka indexing plugins feature.\r\nFour types of base plugins are implemented:\r\n\r\n1. `Content::mapFields(Content $content)`\r\n2. `ContentTranslation::mapFields(Content $content, $languageCode)`\r\n3. `Location::mapFields(Location $location)`\r\n4. `LocationTranslation::mapFields(Location $location, $languageCode)`\r\n\r\nFor each of these an `Aggregate` plugin is implemented and used (6 places total):\r\n\r\n1. `Content::mapFields(Content $content)`\r\n  1. Block - indexes fields on the block document level -- meaning to each Content and Location document in the block\r\n  2. Content - indexes fields to each Content document\r\n2. `ContentTranslation::mapFields(Content $content, $languageCode)`\r\n  1. BlockTranslation - indexes fields on the block level per translation\r\n  2. ContentTranslation - indexes fields to Content document per translation\r\n3. `Location::mapFields(Location $location)`\r\n  1. Location - indexes field to each Location document\r\n4. `LocationTranslation::mapFields(Location $location, $languageCode)`\r\n  1. LocationTranslation - indexes field to Location document per translation\r\n\r\nConcrete plugins are registered to `Aggregate` plugin in a container compiler pass, using service tags.\r\nAt the moment no concrete plugins are implemented, followup to this would be refactoring `DocumentMapper` to use only plugins to map fields.","created_at":"2016-04-25T08:21:58Z","updated_at":"2016-04-25T08:21:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls/42/commits","review_comments_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls/42/comments","review_comment_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/issues/42/comments","statuses_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/statuses/602b568d9b19e6e36937e9791b713268c26c997d","head":{"label":"pspanja:indexing_plugins","ref":"indexing_plugins","sha":"602b568d9b19e6e36937e9791b713268c26c997d","user":{"login":"pspanja","id":1135425,"avatar_url":"https://avatars.githubusercontent.com/u/1135425?v=3","gravatar_id":"","url":"https://api.github.com/users/pspanja","html_url":"https://github.com/pspanja","followers_url":"https://api.github.com/users/pspanja/followers","following_url":"https://api.github.com/users/pspanja/following{/other_user}","gists_url":"https://api.github.com/users/pspanja/gists{/gist_id}","starred_url":"https://api.github.com/users/pspanja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pspanja/subscriptions","organizations_url":"https://api.github.com/users/pspanja/orgs","repos_url":"https://api.github.com/users/pspanja/repos","events_url":"https://api.github.com/users/pspanja/events{/privacy}","received_events_url":"https://api.github.com/users/pspanja/received_events","type":"User","site_admin":false},"repo":{"id":56768401,"name":"ezplatform-solr-search-engine","full_name":"pspanja/ezplatform-solr-search-engine","owner":{"login":"pspanja","id":1135425,"avatar_url":"https://avatars.githubusercontent.com/u/1135425?v=3","gravatar_id":"","url":"https://api.github.com/users/pspanja","html_url":"https://github.com/pspanja","followers_url":"https://api.github.com/users/pspanja/followers","following_url":"https://api.github.com/users/pspanja/following{/other_user}","gists_url":"https://api.github.com/users/pspanja/gists{/gist_id}","starred_url":"https://api.github.com/users/pspanja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pspanja/subscriptions","organizations_url":"https://api.github.com/users/pspanja/orgs","repos_url":"https://api.github.com/users/pspanja/repos","events_url":"https://api.github.com/users/pspanja/events{/privacy}","received_events_url":"https://api.github.com/users/pspanja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pspanja/ezplatform-solr-search-engine","description":"Solr powered search handler for eZ Platform and eZ Publish 5.4.x","fork":true,"url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine","forks_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/forks","keys_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/teams","hooks_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/hooks","issue_events_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/issues/events{/number}","events_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/events","assignees_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/assignees{/user}","branches_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/branches{/branch}","tags_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/tags","blobs_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/languages","stargazers_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/stargazers","contributors_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/contributors","subscribers_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/subscribers","subscription_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/subscription","commits_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/contents/{+path}","compare_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/merges","archive_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/downloads","issues_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/issues{/number}","pulls_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/labels{/name}","releases_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/releases{/id}","deployments_url":"https://api.github.com/repos/pspanja/ezplatform-solr-search-engine/deployments","created_at":"2016-04-21T11:31:38Z","updated_at":"2016-04-21T11:31:38Z","pushed_at":"2016-04-25T08:07:11Z","git_url":"git://github.com/pspanja/ezplatform-solr-search-engine.git","ssh_url":"git@github.com:pspanja/ezplatform-solr-search-engine.git","clone_url":"https://github.com/pspanja/ezplatform-solr-search-engine.git","svn_url":"https://github.com/pspanja/ezplatform-solr-search-engine","homepage":"","size":616,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"ezsystems:master","ref":"master","sha":"722531cb6574a175e9a1e6ac0a2872c43ef28a18","user":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":39259090,"name":"ezplatform-solr-search-engine","full_name":"ezsystems/ezplatform-solr-search-engine","owner":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ezsystems/ezplatform-solr-search-engine","description":"Solr powered search handler for eZ Platform and eZ Publish 5.4.x","fork":false,"url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine","forks_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/forks","keys_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/teams","hooks_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/events","assignees_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/tags","blobs_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/languages","stargazers_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/subscription","commits_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/merges","archive_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/downloads","issues_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/releases{/id}","deployments_url":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/deployments","created_at":"2015-07-17T14:47:46Z","updated_at":"2016-01-15T22:30:29Z","pushed_at":"2016-03-21T13:20:17Z","git_url":"git://github.com/ezsystems/ezplatform-solr-search-engine.git","ssh_url":"git@github.com:ezsystems/ezplatform-solr-search-engine.git","clone_url":"https://github.com/ezsystems/ezplatform-solr-search-engine.git","svn_url":"https://github.com/ezsystems/ezplatform-solr-search-engine","homepage":"","size":648,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls/42"},"html":{"href":"https://github.com/ezsystems/ezplatform-solr-search-engine/pull/42"},"issue":{"href":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/issues/42"},"comments":{"href":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/ezsystems/ezplatform-solr-search-engine/statuses/602b568d9b19e6e36937e9791b713268c26c997d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":877,"deletions":2,"changed_files":19}}