h69 / content-mapping-adapter-solarium
Adapter for the solarium Solr client inside the h69/content-mapping mini framework.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/h69/content-mapping-adapter-solarium
Requires
- php: >=5.3.0
- h69/content-mapping: ^4.0
- solarium/solarium: ^3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~0.6
README
Adapter for the solarium Solr client inside the h69/content-mapping mini framework.
Installation
composer require h69/content-mapping-adapter-solarium
Usage
use Solarium\Client as SolariumClient; use H69\ContentMapping\Synchronizer; use H69\ContentMapping\Solarium\Adapter as SolariumAdapter; $sourceAdapter = ...; $destinationAdapter = new SolariumAdapter(new SolariumClient($configArray)); $typeToSynchronize = 'pages'; $synchronizer = new Synchronizer($sourceAdapter, $destinationAdapter); $synchronizer->synchronize($typeToSynchronize, function($objectA, $objectB){ ... //return Result::unchanged(); return Result::changed($updatedObjectB); });
Credits, Copyright and License
This project/copy was started at webfactory GmbH, Bonn and was/will be further developed by
Copyright 2016. Code released under the MIT license.