-
Notifications
You must be signed in to change notification settings - Fork 78
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
Using @Version gives error - version_type parameter value must be lowercase #9
Comments
Hi @ausov , I will integrate the fix in the next minor release. Thanks for your feedback. |
@ausov , this fix is on master. Can you try the 2.1.1-SNAPSHOT and validate the fix on your env ? Thanks. |
Yes, the current master works on my env now with Spring Boot 1.4 + ES 2.4 (embedded). Thank you! |
Related question or an issue. How can I use internal versioning of Elasticsearch together with Spring Data Rest? In order to benefit from the built-in mechanism, I have to use Suggestion: Would it be better to introduce a new (optional) annotation to specify a version type, e.g. @VersionType(EXTERNAL)
@Version
private Long version = 0L;
... We can then expose the repo using |
@ausov , It's a good idea. But at this time, I try to keep spring-data-jest more close as possible to spring-data-elasticsearch. I will evaluation the possiblity to add this feature anyway. Can you open a new Issue an spring-data-elasticsearch with your idea ? I will close this issue at the release 2.1.1 Thanks a lot for you feedback and your help. |
OK, thanks again! Created #11 for future enhancements and a new issue in spring-data-elasticsearch. |
Hi Van, For my project I need to run scripts in Elastic Search and AWS doesn't support Scripts below elastic search version 5.XXX. I am trying to use 5+ version with Jest it is giving me error. Any suggestion will be appreciated. Thanks |
Hi Van, can you send me more information about your issue ? |
Hi Van, Thank you for your response, I am getting errors: I tried with 3 versions - 5.2,5.5 and 5.6 and got the following error: But this is working fine with 2.3 version. Elastic Search 5.5 and 5.6.2 HttpMediaTypeNotAcceptableException: Could not find acceptable representation spring Elastic Search 5.2 |
@VanRoy Please let me know if there is any update coming up which support Elastic 5.x version with Jest. Thanks |
@ruchichhabra009 , can you tell me which version of SpringDataJest do you use ? |
Thanks @VanRoy I think I missed your upgrade. I will test my system now. If it works. Thanks |
Elasticsearch expects
version_type
parameter value to be lowercase (case-sensitive), i.e. it should be "external", not EXTERNAL. Gives error with ES 2.3 (and 2.4). Tested with AWS ES service and standalone.Given:
When: saving to index (using an ElasticsearchRepository)
Then:
Suggestion: see JestElasticsearchTemplate.java Line 1165 - convert to lowercase string (or use ordinal).
The text was updated successfully, but these errors were encountered: