Skip to content

[Store][Elasticsearch] Introduce a StoreFactory - #2199

Open
Guikingone wants to merge 1 commit into
symfony:mainfrom
Guikingone:feature/store-factory-elasticsearch
Open

[Store][Elasticsearch] Introduce a StoreFactory#2199
Guikingone wants to merge 1 commit into
symfony:mainfrom
Guikingone:feature/store-factory-elasticsearch

Conversation

@Guikingone

@Guikingone Guikingone commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? yes
Docs? yes
Issues --
License MIT

The Store constructor now expects a pre-scoped HttpClientInterface; endpoint scoping is performed by StoreFactory::create() via ScopingHttpClient::forBaseUri(). The AiBundle wiring switches to the factory.

@Guikingone
Guikingone force-pushed the feature/store-factory-elasticsearch branch 2 times, most recently from c95110d to 6d44a94 Compare June 19, 2026 13:25
@Guikingone
Guikingone marked this pull request as ready for review June 19, 2026 13:42
@carsonbot carsonbot added Feature New feature Store Issues & PRs about the AI Store component Status: Needs Review labels Jun 19, 2026
@Guikingone

Copy link
Copy Markdown
Contributor Author

@OskarStark @chr-hertel Do we have an estimated release date for 1.0? 🤔

PS: I have a few PRs using the same approach as this one on my local fork and wanted to know if we have a specific deadline.

@chr-hertel

chr-hertel commented Jun 21, 2026

Copy link
Copy Markdown
Member

@Guikingone i think i'm saying "in the next four weeks" since march now - doesn't help i guess, sorry 😆

edit: so, in the next four weeks :)

Comment thread UPGRADE.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should be reduced to BC breaks only, and for 0.11

@Guikingone

Copy link
Copy Markdown
Contributor Author

@chr-hertel Well, now I know that I have one month to push as much PR as possible if I want them to be merged in 1.0 😄

i'll push all the PR that I have locally and update the existing ones, thanks for the update 🙂

@Guikingone
Guikingone force-pushed the feature/store-factory-elasticsearch branch from 6d44a94 to d762987 Compare July 16, 2026 13:07
@Guikingone
Guikingone force-pushed the feature/store-factory-elasticsearch branch from d762987 to d04638b Compare July 16, 2026 14:19
The `Store` constructor now expects a pre-scoped `HttpClientInterface`;
endpoint scoping is performed by `StoreFactory::create()` via
`ScopingHttpClient::forBaseUri()`. The `AiBundle` wiring switches to the
factory.
@Guikingone
Guikingone force-pushed the feature/store-factory-elasticsearch branch from d04638b to 5d34960 Compare July 16, 2026 17:39
@chr-hertel chr-hertel added the BC Break Breaking the Backwards Compatibility Promise label Jul 20, 2026
): StoreInterface&ManagedStoreInterface {
$httpClient ??= HttpClient::create();

if (null !== $endpoint) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this part needs to cover the rtrim that got removed in Store constructor now

* } $document
* @param array<mixed> $document
*/
private function convertToVectorDocument(array $document): VectorDocument

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this part of the diff is missing from PR title/description and changelog? what's the goal/scope here? is it potentially a different PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

those new exceptions need tests, please

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

Labels

BC Break Breaking the Backwards Compatibility Promise Feature New feature Status: Needs Work Store Issues & PRs about the AI Store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants