https://github.com/php-cmsig/seal-solr-adapter
An adapter to support Apache Solr in CMS-IG SEAL search abstraction. Part of the https://github.com/php-cmsig/search project. READ-ONLY Repository
https://github.com/php-cmsig/seal-solr-adapter
apache-solr cmsig php seal-adapter seal-php-adapter search-client solr solr-cloud solrcloud
Last synced: 7 months ago
JSON representation
An adapter to support Apache Solr in CMS-IG SEAL search abstraction. Part of the https://github.com/php-cmsig/search project. READ-ONLY Repository
- Host: GitHub
- URL: https://github.com/php-cmsig/seal-solr-adapter
- Owner: PHP-CMSIG
- License: mit
- Created: 2023-02-01T02:01:18.000Z (over 3 years ago)
- Default Branch: 0.7
- Last Pushed: 2025-03-19T16:36:04.000Z (about 1 year ago)
- Last Synced: 2025-04-15T19:54:06.998Z (about 1 year ago)
- Topics: apache-solr, cmsig, php, seal-adapter, seal-php-adapter, search-client, solr, solr-cloud, solrcloud
- Language: PHP
- Homepage:
- Size: 295 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
> **Note**:
> This is part of the `cmsig/search` project create issues in the [main repository](https://github.com/php-cmsig/search).
---
Logo created by Meine Wilma
SEAL
Solr Adapter
The `SolrAdapter` write the documents into a [Apache Solr](https://github.com/apache/solr) server instance. The Apache Solr server is running in the [`cloud mode`](https://solr.apache.org/guide/solr/latest/getting-started/tutorial-solrcloud.html) as we require to use collections for indexes.
> **Note**:
> This project is heavily under development and any feedback is greatly appreciated.
## Installation
Use [composer](https://getcomposer.org/) for install the package:
```bash
composer require cmsig/seal cmsig/seal-solr-adapter
```
## Usage.
The following code shows how to create an Engine using this Adapter:
```php
[
'localhost' => [
'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:
```env
solr://127.0.0.1:8983
solr://solr:SolrRocks@127.0.0.1:8983
```
## Authors
- [Alexander Schranz](https://github.com/alexander-schranz/)
- [The Community Contributors](https://github.com/php-cmsig/search/graphs/contributors)