Skip to content

Add Elasticsearch 9 and Elastica 9 support#1995

Merged
XWB merged 2 commits into
FriendsOfSymfony:masterfrom
guillaume-sainthillier:claude/dazzling-mayer-2PJ8g
May 28, 2026
Merged

Add Elasticsearch 9 and Elastica 9 support#1995
XWB merged 2 commits into
FriendsOfSymfony:masterfrom
guillaume-sainthillier:claude/dazzling-mayer-2PJ8g

Conversation

@guillaume-sainthillier

@guillaume-sainthillier guillaume-sainthillier commented May 26, 2026

Copy link
Copy Markdown
Contributor

fix #1975

Allow installing Elastica 9 alongside Elastica 8 by removing usages of the removed Elastica\Request class and adapting the index template mapping builder to the new _index_template API exposed by Elastica 9's IndexTemplate. The CI matrix now runs the test suite against both Elasticsearch 8.12.0 and 9.0.0.

Some words about the timeout option :
Now elastic/elasticsearch-php works with any PSR http client, the default builtin implementation (Elastic\Transport\Client) does not support timeout & headers options. For now, we add a reflection based fix but it would be nice to review this architecture by passthrough the http_client_options or creating adapter

@guillaume-sainthillier

Copy link
Copy Markdown
Contributor Author

@XWB same CI security issue as #1994, are you able to "allow" the CI actions to run ?

@XWB

XWB commented May 28, 2026

Copy link
Copy Markdown
Member

I'm looking but cannot find a button to start the workflow.

@guillaume-sainthillier guillaume-sainthillier force-pushed the claude/dazzling-mayer-2PJ8g branch 2 times, most recently from 05986c1 to a0c513b Compare May 28, 2026 08:59
@guillaume-sainthillier

Copy link
Copy Markdown
Contributor Author

@XWB it look likes unlocked today!

@guillaume-sainthillier guillaume-sainthillier force-pushed the claude/dazzling-mayer-2PJ8g branch 3 times, most recently from 74673b7 to c5a522e Compare May 28, 2026 11:08
claude and others added 2 commits May 28, 2026 13:28
Allow installing Elastica 9 alongside Elastica 8 by removing usages of the
removed `Elastica\Request` class and adapting the index template mapping
builder to the new `_index_template` API exposed by Elastica 9's
`IndexTemplate`. The CI matrix now runs the test suite against both
Elasticsearch 8.12.0 and 9.0.0.
@guillaume-sainthillier guillaume-sainthillier force-pushed the claude/dazzling-mayer-2PJ8g branch from c5a522e to 14ae946 Compare May 28, 2026 11:28
@guillaume-sainthillier guillaume-sainthillier changed the title Add Elasticsearch 9 and Elastica 9 support Add Elasticsearch 9 and Elastica 9 support - fix #1975 May 28, 2026
@guillaume-sainthillier guillaume-sainthillier changed the title Add Elasticsearch 9 and Elastica 9 support - fix #1975 Add Elasticsearch 9 and Elastica 9 support May 28, 2026
@XWB XWB merged commit c010d49 into FriendsOfSymfony:master May 28, 2026
36 checks passed
@XWB

XWB commented May 28, 2026

Copy link
Copy Markdown
Member

Thanks for all the hard work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Elasticsearch 9

3 participants