congraph/entity-elastic

There is no license information available for the latest version (v2.0.3) of this package.

Maintainers

Package info

github.com/congraphcms/entity-elastic

pkg:composer/congraph/entity-elastic

Statistics

Installs: 145

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.3 2026-04-12 09:41 UTC

This package is auto-updated.

Last update: 2026-04-12 09:46:50 UTC


README

congraph/entity-elastic provides OpenSearch-backed indexing and delivery for Congraph entities.

Responsibilities

  • indexing EAV entities into OpenSearch
  • delivery queries backed by OpenSearch
  • field formatting for searchable documents
  • reindex workflows, including IndexAllCommand

Installation

composer require congraph/entity-elastic

This package depends on:

  • core
  • contracts
  • filesystem
  • locales
  • workflows
  • eav

Laravel package provider:

OpenSearch

This package is now aligned on OpenSearch rather than legacy Elasticsearch naming.

Recommended environment:

OPENSEARCH_HOSTS=127.0.0.1:9200

The monorepo local helper uses OpenSearch 3.5.0.

Indexing

One of the most important workflows is bulk reindexing:

This command now has dedicated integration coverage for:

  • multi-batch indexing
  • node references created later than the source entity
  • node collection references created later than the source entity

See:

Development

Install dependencies

cd /Users/nikolap/git/np/congraph/packages/entity-elastic
composer update -W

Run tests

composer test
composer test:pgsql
composer test:opensearch

Focused OpenSearch example:

composer test:opensearch -- tests/integration/IndexAllCommandTest.php

Contribution notes

  • any delivery/indexing change should be verified with composer test:opensearch
  • prefer OpenSearch-compatible request bodies and mappings
  • do not assume MySQL-shaped source data when formatting indexed entities
  • when changing bulk indexing or relation formatting, extend integration coverage