cmsig/seal-solr-adapter
最新稳定版本:0.12.10
Composer 安装命令:
composer require cmsig/seal-solr-adapter
包简介
An adapter to support apache solr in cmsig/seal search abstraction.
README 文档
README
Your feedback is important 📘Note: This is part of the
cmsig/searchproject create issues in the main repository.
Are you working with SEAL? Let us know! | Which Search Engines do you use and why?
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
统计信息
- 总下载量: 153
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 10
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-16