{"id":16817868,"url":"https://github.com/phpfour/php-solr-helper","last_synced_at":"2025-06-25T07:03:17.429Z","repository":{"id":3303857,"uuid":"4345773","full_name":"phpfour/php-solr-helper","owner":"phpfour","description":"A small helper to ease querying Apache Solr using the solr-php-client library.","archived":false,"fork":false,"pushed_at":"2013-06-07T08:56:15.000Z","size":179,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T07:02:34.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpfour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-16T10:21:02.000Z","updated_at":"2013-12-18T13:44:51.000Z","dependencies_parsed_at":"2022-09-04T01:10:54.148Z","dependency_job_id":null,"html_url":"https://github.com/phpfour/php-solr-helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phpfour/php-solr-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpfour%2Fphp-solr-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpfour%2Fphp-solr-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpfour%2Fphp-solr-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpfour%2Fphp-solr-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpfour","download_url":"https://codeload.github.com/phpfour/php-solr-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpfour%2Fphp-solr-helper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261823686,"owners_count":23215140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T10:48:35.434Z","updated_at":"2025-06-25T07:03:17.405Z","avatar_url":"https://github.com/phpfour.png","language":"PHP","readme":"PHP Solr Helper\n===============\n\nThis is a small helper to ease querying Apache Solr using the solr-php-client library.\n\nExample 1:\n----------\n\nSearches the solr for records matching the two fields make and model.\n\n    $solrHelper = new \\Emran\\SolrHelper(new \\Apache_Solr_Service('localhost', 8080, '/solr/'));\n    $result = $solrHelper-\u003eaddSingleValueCriteria('make', 'BMW')\n                         -\u003eaddSingleValueCriteria('model', 'X5')\n                         -\u003esearch();\n\nExample 2:\n----------\n\nSearches the solr for records matching the two fields make, model and a price range between 10000 and \n20000. Also limits the fields to be returned to acode and price.\n\n    $solrHelper = new \\Emran\\SolrHelper(new \\Apache_Solr_Service('localhost', 8080, '/solr/'));\n    $result = $solrHelper-\u003eaddSingleValueCriteria('make', 'BMW')\n                         -\u003eaddMultiValueCriteria('model', array('X5', 'X3'))\n                         -\u003eaddRangeCriteria('price', array(20000, 50000))\n                         -\u003estart(0)\n                         -\u003elimit(10)\n                         -\u003eorder('price desc')\n                         -\u003esearch();","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpfour%2Fphp-solr-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpfour%2Fphp-solr-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpfour%2Fphp-solr-helper/lists"}