Update ElasticsearchProviderResourceMetadataCollectionFactory.php#5264
Update ElasticsearchProviderResourceMetadataCollectionFactory.php#5264rapaelector wants to merge 1 commit into
Conversation
|
I see that if we custom the index like this : we have to specify in the Model the provider and the elasticsearch : But why it is not automatic to found the provider and why should I add the elasticsearch as false ? |
|
Right, can you target 3.0 ? We've an ongoing work on elasticsearch here : https://github.com/api-platform/core/pull/5213/files |
thanks for your reply, yes I’ll do it tomorrow |
|
supersseeded by #5272 thanks! |
|
There are tests failing over that: #5272 Indeed, I think there's more to it as if elasticsearch is enabled we want to try and get indices. This is quite bad DX we need to improve it but its not yet a priority. please patch this over to your codebase by overriding the service for now or help me get the tests to work at 5272 thanks! |
|
thanks for your reply , |
by default the elasticsearch is not false but null so it will create confusion with indices and try to check the index as the shortName. But the shortName by default is the model class and it is not true for every cases , even if the index is different of the class and create an issue