https://github.com/internations/solrquerycomponent
Build Solr queries with ease
https://github.com/internations/solrquerycomponent
Last synced: 3 days ago
JSON representation
Build Solr queries with ease
- Host: GitHub
- URL: https://github.com/internations/solrquerycomponent
- Owner: InterNations
- Created: 2013-03-09T01:05:54.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-08-01T12:12:31.000Z (almost 3 years ago)
- Last Synced: 2025-06-26T02:42:23.328Z (10 days ago)
- Language: PHP
- Homepage: http://www.internations.org
- Size: 243 KB
- Stars: 63
- Watchers: 38
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SolrQueryComponent
[](https://github.com/InterNations/SolrQueryComponent/actions/workflows/tests.yaml)
#### Build Solr queries with ease
`SolrQueryComponent` helps building Solr/Lucene/ElasticSearch queries with a query builder API. It is independent of
the concrete client library and can be used with e.g. [PECL Solr](http://pecl.php.net/package/solr) or
[Solarium](http://www.solarium-project.org/).### Examples
Build `name:"John Doe"^100`
```php
field('name', $eb->boost($eb->eq('John Doe'), 100));
```And the same with the query string object:
```php
^'))
->setPlaceholder('name', 'John Doe')
->setPlaceholder('boost', 100);
```Learn more on how to use the component in [docs/](docs).