-
Notifications
You must be signed in to change notification settings - Fork 58
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
The include_type_name parameter for 6.7 #169
Comments
I'm working on an updated release which will support this. In the meantime, you can use a low level method to pass in an unvalidated request:
|
Any expected release date for the fixed client (or a client without these checks as the server does them anyway and more correct)? |
I'm also curious when this fix is expected in the perl module. |
@clintongormley would it be possible to release a tiny minor release to include just this function? |
I just came across this issue too, in the process of testing our indexer against a 6.8 cluster. Without the support for include_type_name I will have to look closer at our code base before considering the upgrade from 6.5. |
The issue is currently blocking Elasticsearch upgrades.😔 Any solution would be great. |
Please please make a tiny minor release |
#178 looks promising |
@sewi-cpan, @djzort, @brostad, @eanicom I just released a |
@ezimuel so far so good. |
Just downloaded the new version, thank you @ezimuel! |
Hi, I have just tested 6.80_1. From our log:
If I include the parameter include_type_name, I get an Unknown Parameter exception.
|
The
@truj in your example, you can use More information here. |
Thank you for making the Search::Elasticsearch 6.80_1 release! It has taken me a while (Corona virus etc) to get my act together and update my test suite with the new include_name_type parameter. And all my tests ran smoothly with the exception of one test where I still got deprecation warnings, in it I'm making a call to $e->indices->exists() to check the existence of a named index. Why would $e->indices->exists() need to know about types? And why isn't the include_type_name parameter available for the exists() method? For now I have made a workaround by replacing the call to exists() with one to get() and then catch the index_not_found_exception if the index doesn't exist. It's not that pretty but hopefully just temporary fix until we migrate to ES7 later this year. Anyway, I'm really happy with the 6.80_1 release you've created as all my tests now pass :) bernt@stagedev:~/bernt/esdev$ prove lib/Retriever/ElasticSearch/t/ Thank you very much @ezimuel and keep up the great work! |
Thanks for your suggestion, @ezimuel. We use the exists() method very often. It results in a simple HEAD without much overhead as only the HTTP header is returned. So I have tried out how the HEAD request works with or without include_type_name.
But with the parameter I don't get the warning:
That means that the server side supports this. |
@truj thanks for reporting this. I investigated more and discovered that the issue seems to be related only for Elasticsearch 6.7. The API specification for I'll update you asap and I think I'll add |
That would awesome! Thank you, @ezimuel ! |
Wonderful! Thank you very much, I will download 6.81 when it's available :) |
Fix for #169, adding include_type_name in indices.exists
Just released 6.81. Updated also CPAN here: https://metacpan.org/release/EZIMUEL/Search-Elasticsearch-6.81 |
Thank you, @ezimuel! Have downloaded 6.81 and will give it a test over the weekend. |
Pertaining to the include_type_name parameter as described at https://www.elastic.co/guide/en/elasticsearch/reference/6.7/removal-of-types.html
Despite reviewing the pod (and even grepping the tarball) I am unable to determine how i can supply this parameter and satiate elasticsearch's warnings.
Could someone please let me know how i can provide it to Search::Elasticsearch?
The text was updated successfully, but these errors were encountered: