{"issue":{"user":{"id":580644,"login":"basdenooijer","url":"https://api.github.com/users/basdenooijer","avatar_url":"https://secure.gravatar.com/avatar/595508837c3f90c1f805475309afc719?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"595508837c3f90c1f805475309afc719"},"milestone":{"creator":{"id":580644,"login":"basdenooijer","url":"https://api.github.com/users/basdenooijer","avatar_url":"https://secure.gravatar.com/avatar/595508837c3f90c1f805475309afc719?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"595508837c3f90c1f805475309afc719"},"title":"Nextgen","created_at":"2011-12-13T14:39:32Z","open_issues":3,"state":"open","due_on":null,"closed_issues":0,"number":8,"description":"","url":"https://api.github.com/repos/basdenooijer/solarium/milestones/8"},"title":"Improve the structure of Solarium","created_at":"2011-12-21T06:57:20Z","labels":[{"name":"Improvement","url":"https://api.github.com/repos/basdenooijer/solarium/labels/Improvement","color":"d7e102"}],"state":"open","updated_at":"2011-12-21T06:57:20Z","id":2622287,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/basdenooijer/solarium/issues/54","closed_at":null,"number":54,"body":"Solarium is growing bigger, and not everyone will need all parts. Some will even only want to use a small part and that should be possible. Following the trend set by for instance Symfony2 Solarium should be made into a collection of components that can also be used by themselves. \r\n\r\nThis will require some reorganizing of files. For instance, currently the code for a query type is spread over multiple folder, for instance the update query:\r\n- Client/RequestBuilder/Update.php\r\n- Client/ResponseParser/Update.php\r\n- Query/Update/*\r\n- Result/Update.php\r\nAnd the update query is one of the simplest examples, the select query for instance involves a lot more files. Ideally this would all be reorganized into Query/Update/* \r\n\r\nBy doing so a query becomes a component that can be used standalone. If you for instance already have a Solr implementation and only want to replace a query string builder with the Solarium query API you can do so with a single component, instead of needing the whole library.\r\n\r\nShared functionality can be placed in a special component, with dependencies managed by Composer. Maybe git subtrees can even be used. \r\n\r\nThis also fits in nicely with using components from other sources. For instance the Symfony2 EventDispatcher component.\r\nI do not yet have experience using a component structure in a project this way, so some of my assumptions might need to be altered. Feedback is appreciated. \r\n","url":"https://api.github.com/repos/basdenooijer/solarium/issues/54","comments":0,"assignee":null},"action":"opened"}