martiis / elasticsearch-reindexer
A quick tool for reindexing your elasticsearch data
Installs: 918
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/martiis/elasticsearch-reindexer
Requires
- php: >=5.5
- elasticsearch/elasticsearch: ~2.0
- symfony/console: ~2.7
This package is not auto-updated.
Last update: 2020-01-24 16:01:24 UTC
README
A quick console tool for reindexing your elasticsearch data. It's made using only symfony/console and official elasticsearch php client.
setup
basic way
# git clone https://github.com/martiis/elasticsearch-reindexer.git
# cd elasticsearch-reindexer
# composer install
# bin/reindex <scan_index> <index_index>
composer way
# composer require martiis/elasticsearch-reindexer
# vendor/bin/reindex <scan_index> <index_index>
usage
Reindex command has few more arguments and options to play with:
| Type | Name | Meaning |
|---|---|---|
| Argument | scan | Index name to scan |
| Argument | index | Index name to index |
| Option | host | Elasticsearch host |
| Option | port | Elasticsearch port |
| Option | bulk | Indexing bulk size |