{"issue":{"created_at":"2011-12-09T19:36:49Z","state":"open","updated_at":"2011-12-09T19:49:48Z","comments":1,"user":{"gravatar_id":"eb42ff31986f5ed1d97580819134d702","id":88061,"url":"https://api.github.com/users/igorw","avatar_url":"https://secure.gravatar.com/avatar/eb42ff31986f5ed1d97580819134d702?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"igorw"},"body":"Solarium: [solarium-project.org](http://solarium-project.org)\r\n\r\nExample usage (with [NelmioSolariumBundle](https://github.com/nelmio/NelmioSolariumBundle)):\r\n\r\n    $solarium = $this->get('solarium.client');\r\n\r\n    $query = $solarium->createSelect();\r\n    $query->setQuery($searchQuery->getQuery());\r\n\r\n    $paginator = new Pagerfanta(new SolariumAdapter($solarium, $query));\r\n    $paginator->setMaxPerPage(15);\r\n    $paginator->setCurrentPage($req->query->get('page', 1), false, true);\r\n\r\n    return $this->render('PackagistWebBundle:Web:search.html.twig', array('packages' => $paginator));\r\n\r\nIt will be used on [packagist.org](http://packagist.org).\r\n\r\nAlso allows Adapter::getSlice() to return an Iterator or IteratorAggregate.","assignee":null,"pull_request":{"patch_url":"https://github.com/whiteoctober/Pagerfanta/pull/40.patch","html_url":"https://github.com/whiteoctober/Pagerfanta/pull/40","diff_url":"https://github.com/whiteoctober/Pagerfanta/pull/40.diff"},"id":2505733,"number":40,"labels":[],"title":"add a Solarium (solr client) adapter","html_url":"https://github.com/whiteoctober/Pagerfanta/issues/40","closed_at":null,"url":"https://api.github.com/repos/whiteoctober/Pagerfanta/issues/40","milestone":null},"action":"created","comment":{"created_at":"2011-12-09T19:49:48Z","updated_at":"2011-12-09T19:49:48Z","user":{"gravatar_id":"7894bbdf1c05b18a1444ad8c76c9d583","id":439401,"url":"https://api.github.com/users/stof","avatar_url":"https://secure.gravatar.com/avatar/7894bbdf1c05b18a1444ad8c76c9d583?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"stof"},"body":"@igorw you should add unit tests","id":3084504,"url":"https://api.github.com/repos/whiteoctober/Pagerfanta/issues/comments/3084504"}}