Skip to content

[Elasticsearch] Require Elasticsearch >= 8.12.2 and test against it - #501

Merged
kingjia90 merged 1 commit into
2026.xfrom
improvement/es-min-8-12-2
Aug 27, 2026
Merged

[Elasticsearch] Require Elasticsearch >= 8.12.2 and test against it#501
kingjia90 merged 1 commit into
2026.xfrom
improvement/es-min-8-12-2

Conversation

@kingjia90

Copy link
Copy Markdown
Contributor

Changes

  • composer.json: raise pimcore/elasticsearch-client from ^2026.1 to ^2026.3, which requires the elasticsearch/elasticsearch client library ^8.12 ([Elasticsearch] Raise minimum supported version to 8.12.2 elasticsearch-client#46). Until 2026.3.0 of the client is tagged, the constraint resolves to 2026.x-dev in CI (minimum-stability: dev), so CI stays green.
  • CI: run the Elasticsearch Codeception workflow against server 8.12.2 (was 8.5.3).
  • Local test env: bump the elasticsearch image to 8.12.2 and repair tests/bin/init-functional-tests.sh — it still called the removed setup-pimcore-environment-functional-tests.sh; the current setup-pimcore-environment.sh auto-detects Elasticsearch, so the script now stops the ES container when testing OpenSearch.
  • Docs: minimum Elasticsearch server version is now 8.12.2; fixed the dead blob/1.x link to the client README.

Why

Chunking / nested vector support requires Elasticsearch server >= 8.12.2.
Ref: https://github.com/pimcore/internal-improvements/issues/25 (part of pimcore/product-management#1322)

OpenSearch support is unchanged.

Merge order

pimcore/elasticsearch-client#46 should be merged first.

🤖 Generated with Claude Code

- composer: raise pimcore/elasticsearch-client to ^2026.3 (which requires
  the elasticsearch/elasticsearch client library ^8.12)
- CI: run the Elasticsearch Codeception tests against server 8.12.2
- local test env: bump elasticsearch image to 8.12.2 and repair
  tests/bin/init-functional-tests.sh (the referenced setup script was
  renamed to setup-pimcore-environment.sh)
- docs: state the new minimum server version

See pimcore/internal-improvements#25

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings August 27, 2026 10:08
@kingjia90 kingjia90 added this to the 2026.3.0 milestone Aug 27, 2026
@kingjia90 kingjia90 self-assigned this Aug 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Verdict: Needs changes.

Raises Elasticsearch support to 8.12.2 across dependencies, CI, local testing, and documentation.

Changes:

  • Requires pimcore/elasticsearch-client ^2026.3.
  • Tests against Elasticsearch 8.12.2.
  • Updates setup scripts and compatibility documentation.

Review Contract

  1. Claimed: Require and test Elasticsearch 8.12.2.
  2. Root cause: Version updates address the requirement, but local setup introduces a startup race.
  3. Call sites: Repository references were updated; the companion package’s branch alias remains incompatible.
  4. Boundary: Changes are in the appropriate dependency, test, and documentation layers.
  5. Backward compatibility: The intentional minimum-version increase is documented.
  6. Regression test: CI covers Elasticsearch 8.12.2; local auto-detection remains unreliable.
  7. Docs/changelog: Updated consistently.
  8. Remaining risks: Composer cannot currently resolve ^2026.3, and local tests may configure OpenSearch accidentally.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
composer.json Raises the Elasticsearch client dependency.
.github/workflows/elastic-search-codeception.yaml Tests with Elasticsearch 8.12.2.
tests/bin/docker-compose.yaml Updates the local Elasticsearch image.
tests/bin/init-functional-tests.sh Switches to auto-detecting the search backend.
doc/01_Installation/README.md Documents supported server versions.
doc/01_Installation/02_Upgrade.md Adds the upgrade notice and fixes wording.
doc/02_Configuration/05_Elasticsearch.md Updates requirements and the client documentation link.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread composer.json

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 7 changed files in this pull request and generated no new comments.

@kingjia90
kingjia90 merged commit 9455c3b into 2026.x Aug 27, 2026
54 of 56 checks passed
@kingjia90
kingjia90 deleted the improvement/es-min-8-12-2 branch August 27, 2026 14:42
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants