h69/content-mapping-adapter-solarium

This package is abandoned and no longer maintained. No replacement package was suggested.

Adapter for the solarium Solr client inside the h69/content-mapping mini framework.

2.0.2 2016-07-13 21:25 UTC

This package is auto-updated.

Last update: 2023-01-21 17:19:15 UTC


README

Build Status Coverage Status

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.