PHP code example of cmsig / seal-solr-adapter

1. Go to this page and download the library: Download cmsig/seal-solr-adapter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cmsig / seal-solr-adapter example snippets




use Solr\Client;
use Solarium\Core\Client\Adapter\Curl;
use CmsIg\Seal\Adapter\Solr\SolrAdapter;
use CmsIg\Seal\Engine;
use Symfony\Component\EventDispatcher\EventDispatcher;

$client = new Client(new Curl(), new EventDispatcher(), [
    'endpoint' => [
        'localhost' => [
            'host' => '127.0.0.1',
            'port' => '8983',
            // authenticated