{"id":19242831,"url":"https://github.com/internations/solrquerycomponent","last_synced_at":"2025-07-03T11:04:02.030Z","repository":{"id":7340218,"uuid":"8663167","full_name":"InterNations/SolrQueryComponent","owner":"InterNations","description":"Build Solr queries with ease","archived":false,"fork":false,"pushed_at":"2022-08-01T12:12:31.000Z","size":249,"stargazers_count":63,"open_issues_count":3,"forks_count":14,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-06-26T02:42:23.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.internations.org","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/InterNations.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":"2013-03-09T01:05:54.000Z","updated_at":"2024-05-15T10:47:23.000Z","dependencies_parsed_at":"2022-08-26T12:51:37.222Z","dependency_job_id":null,"html_url":"https://github.com/InterNations/SolrQueryComponent","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/InterNations/SolrQueryComponent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterNations%2FSolrQueryComponent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterNations%2FSolrQueryComponent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterNations%2FSolrQueryComponent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterNations%2FSolrQueryComponent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InterNations","download_url":"https://codeload.github.com/InterNations/SolrQueryComponent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InterNations%2FSolrQueryComponent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263314105,"owners_count":23447292,"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-11-09T17:15:37.848Z","updated_at":"2025-07-03T11:04:02.002Z","avatar_url":"https://github.com/InterNations.png","language":"PHP","readme":"# SolrQueryComponent\n\n[![Test](https://github.com/InterNations/SolrQueryComponent/actions/workflows/tests.yaml/badge.svg)](https://github.com/InterNations/SolrQueryComponent/actions/workflows/tests.yaml)\n\n#### Build Solr queries with ease\n\n`SolrQueryComponent` helps building Solr/Lucene/ElasticSearch queries with a query builder API. It is independent of\nthe concrete client library and can be used with e.g. [PECL Solr](http://pecl.php.net/package/solr) or\n[Solarium](http://www.solarium-project.org/).\n\n### Examples\n\nBuild `name:\"John Doe\"^100`\n\n```php\n\u003c?php\nuse InterNations\\Component\\Solr\\Expression\\ExpressionBuilder;\n\n$eb = new ExpressionBuilder();\necho $eb-\u003efield('name', $eb-\u003eboost($eb-\u003eeq('John Doe'), 100));\n```\n\nAnd the same with the query string object:\n\n```php\n\u003c?php\nuse InterNations\\Component\\Solr\\Query\\QueryString;\n\necho (new QueryString('name:\u003cname\u003e^\u003cboost\u003e'))\n    -\u003esetPlaceholder('name', 'John Doe')\n    -\u003esetPlaceholder('boost', 100);\n```\n\nLearn more on how to use the component in [docs/](docs).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finternations%2Fsolrquerycomponent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finternations%2Fsolrquerycomponent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finternations%2Fsolrquerycomponent/lists"}