Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/internations/solrquerycomponent
Build Solr queries with ease
https://github.com/internations/solrquerycomponent
Last synced: 1 day 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 11 years ago)
- Default Branch: master
- Last Pushed: 2022-08-01T12:12:31.000Z (over 2 years ago)
- Last Synced: 2024-11-06T09:05:29.140Z (12 days ago)
- Language: PHP
- Homepage: http://www.internations.org
- Size: 243 KB
- Stars: 63
- Watchers: 39
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SolrQueryComponent
[![Test](https://github.com/InterNations/SolrQueryComponent/actions/workflows/tests.yaml/badge.svg)](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).