devouted / elastic-index-manager
About
v1.0.3
2024-11-28 12:20 UTC
Requires
- php: ^8.1
- elasticsearch/elasticsearch: 7.17.*
- symfony/console: 6.4.*
- symfony/dependency-injection: 6.4.*
- symfony/framework-bundle: 6.4.*
This package is auto-updated.
Last update: 2025-08-28 13:58:28 UTC
README
This is a simple elastic indexes manager.
Installation
Install the package using Composer:
composer require devouted/elastic-index-manager
Configuration
Add the following configuration to your services.yaml to register the command:
Copy code Devouted\ElasticIndexManager\Command\ElasticIndexManagerCommand: tags: ['console.command']
Command will search for any service that returns a Elasticsearch/Client class: like bellow:
elasticsearch.client.default: public: true class: Elasticsearch\ClientBuilder factory: [ 'Elasticsearch\ClientBuilder', 'fromConfig' ] arguments: - { hosts: [ '%env(ELASTICSEARCH_TRANSPORT)%://%env(ELASTICSEARCH_HOST)%:%env(ELASTICSEARCH_PORT)%' ] }
Usage
Once installed and configured, you can use the command via the Symfony Console to manage your elastic indexes.
bin/console elasticsearch:index:manage
Select connection
run action