wa72/es-tools

PHP Helper classes for Elasticsearch

dev-master 2023-10-25 14:14 UTC

This package is auto-updated.

Last update: 2024-11-25 16:39:38 UTC


README

Build Status

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 method prepareIndex 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.