ejunker / solarium
PHP Solr client
Requires
- php: ^7.1.3
- ext-json: *
- symfony/event-dispatcher: ^4.3 || ^5.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- guzzlehttp/guzzle: ^3.8 || ^6.2
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^8.0
- squizlabs/php_codesniffer: ^3.4
- zendframework/zend-http: ^2.8
Suggests
- minimalcode/search: Query builder compatible with Solarium, allows simplified solr-query handling
- dev-master
- 5.1.6
- 5.1.5
- 5.1.4
- 5.1.3
- 5.1.2
- 5.1.1
- 5.1.0
- 5.1.0-rc.1
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-rc.1
- 5.0.0-beta.1
- 5.0.0-alpha.2
- 5.0.0-alpha.1
- 4.x-dev
- 4.3.0
- 4.3.0-alpha.2
- 4.3.0-alpha1
- 4.2.0
- 4.2.0-rc.1
- 4.2.0-beta.1
- 4.1.0
- 4.1.0-rc.1
- 4.1.0-beta.1
- 4.1.0-alpha.1
- 4.0.0
- 4.0.0-rc.1
- 4.0.0-beta.1
- 4.0.0-alpha.2
- 4.0.0-alpha.1
- 3.x-dev
- v3.9.0-alpha
- 3.8.1
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.1
- 3.5.0
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.0
- 3.2.0-RC1
- 3.1.2
- 3.1.1
- 3.1.0
- 3.1.0-RC1
- 3.0.1
- 3.0.0
- 3.0.0-RC1
- 2.4.1
- 2.4.0
- 2.3.0
- dev-analytics-component
- dev-issue-550-use-php-http-library
This package is auto-updated.
Last update: 2024-11-05 01:36:23 UTC
README
What is Solarium?
Solarium is a PHP Solr client library that accurately model Solr concepts. Where many other Solr libraries only handle the communication with Solr, Solarium also relieves you of handling all the complex Solr query parameters using a well documented API.
Please see the docs for a more detailed description.
Requirements
Solarium 5.x only supports PHP 7.1 and up.
It's highly recommended to have Curl enabled in your PHP environment. However if you don't have Curl available you can switch from using Curl (the default) to another client adapter. The other adapters don't support all the features of the Curl adapter.
Getting started
The preferred way to install Solarium is by using Composer. Solarium is available on Packagist.
Example:
composer require solarium/solarium
Pitfall when upgrading from earlier versions to 5.x
In the past, the V1 API endpoint solr was not added automatically, so most users set it as path on the endpoint.
This bug was discovered with the addition of V2 API support. In almost every setup, the path has to be set to /
instead of /solr
with this release!
For the same reason it is a must to explicit configure the core or collection.
So an old setting like
'path' => '/solr/xxxx/'
has to be changed to something like
'path' => '/',
'collection' => 'xxxx',
Run the examples
To run the examples read through the Example code section of https://solarium.readthedocs.io/en/stable/getting-started/
More information
-
Issue tracker
http://github.com/solariumphp/solarium/issues -
Contributors
https://github.com/solariumphp/solarium/contributors -
License
See the COPYING file or view online:
https://github.com/solariumphp/solarium/blob/master/COPYING