Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES 7.* deprecation notice on query #22

Closed
pkly opened this issue Mar 20, 2021 · 2 comments
Closed

ES 7.* deprecation notice on query #22

pkly opened this issue Mar 20, 2021 · 2 comments

Comments

@pkly
Copy link

pkly commented Mar 20, 2021

When using the newest version of the bundle an error occurs when searching for a document matching something (in our case it's a simple where something_id = 1) the following error can be seen in logs

Deprecation ["299 Elasticsearch-7.8.0-757314695644ea9a1dc2fecd26d1a43856725e65 "[types removal] Specifying types in search requests is deprecated.""]

Should happen with $document = $repository->findOneBy(['whatever_id' => 5]);
PHP 7.4.14
ES 7.8.0 (docker)
Bundle 5.2.6.8

@alexander-schranz
Copy link
Member

alexander-schranz commented Aug 8, 2022

We relay on some deprecation methods of elasticsearch as the Bundle Supports Elastcisearch 5, 6 and 7, (8 soon) with the same version of the library. So can can ignore the deprecation which are not thrown by yourself.

@pkly
Copy link
Author

pkly commented Aug 17, 2022

I've long since switched to elastica but this isn't really a great practice and instead you should use slightly different queries depending on the version of ES used as to prevent hundreds of pointless errors...

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

No branches or pull requests

2 participants