wa72 / es-tools
PHP Helper classes for Elasticsearch
Requires
- php: ^7.1|^8
- elasticsearch/elasticsearch: ^6
- psr/log: ^1
Requires (Dev)
- phpunit/phpunit: ^7|^8
This package is auto-updated.
Last update: 2024-10-25 16:29:29 UTC
README
This repository will contain some useful convenience classes for working with the official Elasticsearch PHP Client, which is a rather lowlevel tool.
The tools in this repo are primarily written for my personal use but may be helpful for others too.
Currently the project contains the following classes:
-
IndexHelper
: create index, verify mappings and settings, manage index version aliases. If mappings or analysis settings have changed for an existing index, the methodprepareIndex
can automatically create a new index with the new settings, re-index existing data, and switch aliases afterwards. -
SearchScrollHelper
: scrolling made easy
See the doc comments in the code.