Search by

syndesi / elastic-entity-manager

Syndesi

Provides an entity manager for Elastic Search

Package info

github.com/Syndesi/elastic-entity-manager

Homepage

pkg:composer/syndesi/elastic-entity-manager

Statistics

Installs: 10 412

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.3.0 2026-11-29 19:58 UTC

This package is auto-updated.

Last update: 2026-11-29 20:03:58 UTC


README

Library containing classes to make working with Elastic easier. Structure is kept close to neo4j-php/cypher-entity-manager.

Requirements

  • PHP 8.1 or newer and the elasticsearch/elasticsearch client.
  • Elasticsearch must allow inline painless scripts (the default). Elasticsearch can only set a field to null in a partial document update, not delete it, so merge() removes properties which are null with a second, scripted update request. Clusters which disable inline scripts, e.g. with script.allowed_types: stored or script.allowed_types: none, are not supported: merge() fails for documents which contain null properties.

Null properties

Properties which are null are never stored. create() skips them and merge() removes them from the stored document. The removal is a separate request after the partial update, so it is not atomic with it.