ventusforge/neos-index-manager
最新稳定版本:0.0.1
Composer 安装命令:
composer require ventusforge/neos-index-manager
包简介
Index Manager for ElasticSearch/OpenSearch in Neos
README 文档
README
Client to manage indices.
How To Use
Define the authentication
# Settings.yaml VentusForge: IndexManager: clients: default: host: 'opensearch' port: 9200 scheme: 'https' # username: dev_foo_bar # optional # password: dev_foo_bar # optional sslCaInfo: '/client-certs/opensearch/root-ca.pem' sslKey: '/client-certs/dev_foo_bar-key.pem' sslCert: '/client-certs/dev_foo_bar.pem'
Select between username & password or a certification file.
Note: you can create an own IndexClientFactory and use the authentication from another settings (i.e. Flowpack.ElasticSearch.clients)
Inject the client
# Objects.yaml 'Foo.Bar:DefaultClient': className: VentusForge\IndexManager\IndexClient scope: singleton factoryObjectName: VentusForge\IndexManager\IndexClientFactoryInterface factoryMethodName: create arguments: 1: value: default
and add the following to your service/controller.
<?php namespace Foo\Bar\Service; use VentusForge\IndexManager\IndexClient; class SomeService { /** * @Flow\Inject(name="Foo.Bar:DefaultClient") * @var IndexClient */ protected $indexClient; }
Testing
Run the functional tests to check if the client is working. This requires a user with the credentials: unittest_user:unittest_user and access to the index dev_unittest_user_*.
FLOW_CONTEXT=Testing bin/phpunit -c Packages/Application/VentusForge.IndexManager/Tests/FunctionalTests.xml
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-04-17