cmsig/seal-solr-adapter

An adapter to support apache solr in cmsig/seal search abstraction.

Package info

github.com/PHP-CMSIG/seal-solr-adapter

pkg:composer/cmsig/seal-solr-adapter

Fund package maintenance!

alexander-schranz

paypal.me/L91

Statistics

Installs: 282

Dependents: 10

Suggesters: 2

Stars: 2

0.12.14 2026-06-08 06:10 UTC

Requires

Suggests

None

Conflicts

MIT 88495713390e7c0a2faa9c274720a63ae33ccb01

  • Alexander Schranz <alexander.woop@sulu.io>

solrsealseal-adaptersearch-clientapache-solrcmsigcmsig-seal-adapter


README

Note: This is part of the cmsig/search project create issues in the main repository.

Your feedback is important 📘
Are you working with SEAL? Let us know! | Which Search Engines do you use and why?




👁 SEAL Logo with an abstract seal sitting on a telescope.
Logo created by Meine Wilma

SEAL
Solr Adapter



The SolrAdapter write the documents into a Apache Solr server instance. The Apache Solr server is running in the cloud mode as we require to use collections for indexes.

Note: This project is heavily under development and any feedback is greatly appreciated.

Installation

Use composer for install the package:

composer require cmsig/seal cmsig/seal-solr-adapter

Usage.

The following code shows how to create an Engine using this Adapter:

<?php

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' => [
 'scheme' => 'http',
 'host' => '127.0.0.1',
 'port' => '8983',
 // authenticated required for configset api https://solr.apache.org/guide/8_9/configsets-api.html
 // alternative set solr.disableConfigSetsCreateAuthChecks=true in your server setup
 'username' => 'solr',
 'password' => 'SolrRocks',
 ],
 ]
]);

$engine = new Engine(
 new SolrAdapter($client),
 $schema,
);

Via DSN for your favorite framework:

solr://127.0.0.1:8983
solr://solr:SolrRocks@127.0.0.1:8983
solr://solr:SolrRocks@127.0.0.1:8983?tls=true

Authors