-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
DATAES-285 - Support for Elasticsearch 5.0 #170
Conversation
…ies. This is required for the switch in support for multi-store detection. Related ticket: DATACMNS-952.
Related ticket: DATACMNS-891.
No suggest support. No suggest facet. Facets have been replaced by aggregations in Elasticsearch 1.0, which are a superset of facets. SoredFields is not working in Elasticsearch 5.x, I guess it's an Elasticsearch bug. The string field type will continue to work during the 5.x series. * Filed.String -> Filed.Text Painless, Groovy Plugins not added.
I've looked into creating a snapshots-repository ... |
That comment was into the direction of the project admins (@mp911de @olivergierke @akonczak). To my knowledge all what's needed is a copy of your branch in the main repository and name it "issue/DATAES-282". With this convention the CI is instructed to publish an artifact off that branch. |
I want to copy my branch to the main repository. But I can't push the branch named "issue/DATES-285" of the main repository. Or, if "issue/DATES-285" branch is created, I want to pull request to the branch. What should I do? |
Hello All, We are looking to use Spring Data Elasticsearch with our project. However, we would like to use ES 5.1.x. Is there an ETA for support of Elasticsearch 5? Thanks |
We're pretty late in the Ingalls release train (GA scheduled for this week), which makes it very unlikely this is going to make it in. We usually ship these kinds of changes at least in an RC. Also, this is a community project and not driven by the Spring Data team, so we're relying very much on the assessment of the actual maintainers. Beyond that, the PR looks like it'll need quite some work. A lot of unrelated changes, changes that leak into the APIs, tests that have changed. All that needs to be taken care of, isn't done in a day and needs at least proper explanation in the commit message. We might be able to consider this for Kay (the 2.0 release) but then again that totally depends on how much time the actual maintainers can invest. |
@olivergierke thanks for the information around the release cycle. I will keep an eye on things for updates. |
Hello All, We are looking to use Spring Data Elasticsearch with our project. However, we would like to use ES 5.1.x. Thanks |
shouldReturnHighlightedFieldsForGivenQueryAndFields test fixed
@olivergierke why is it not driven by the Spring Data team? |
Because we have limited resources and are kept busy with all the other stuff we work on. |
@olivergierke is ES not so interesting like others? strange choice |
@olivergierke who are the "actual" maintainers of this project? Excluding README changes there hasn't been an approved Pull Request since August 2016 (5+ months ago). There is even a Pull Request for a simple README URL fix (#168) that seems like a no-brainer to merge. The lack of response and activity from the "actual" maintainers is very frustrating and discourages people from making contributions to this project. |
@schleifer-john the maintainers are @mohsinh and @akonczak. |
Hello, starting with project status, we are not at that sad level. every major release of elasticsearch causes major api changes in library and 5.x is mojor to all of the releases so far. Given that we will look into upgrading elasticsearch to latest version and as @olivergierke suggested it will be released with Kay if we will be able to merge changes before RC1 which is in mid March. This pull request still require major week or two of a work, its not straight forward merge. We are independent resource(s) willing to contribute on this project wherever we can, anyone who is willing to do the same is more than welcome to contribute. We will keep posting update from our side about upgrade on the same thread. |
@mohsinh We discussed with @olivergierke and @christophstrobl the dependency to the Transport API which causes some work on each upgrade. We were also wondering whether it could make sense switching to the HTTP API which seems more stable throughout the versions. |
Also have you given any thought to search-guard (https://github.com/floragunncom/search-guard ) support from spring-data? |
I need 5.0 es,,what can I do? |
How one can join to help you guys progress on this? |
Hi @olivergierke, @christophstrobl, @mp911de, For now we are working on the easiest option to modify module to use Transport client but our longer term goal is to migrate to Rest Client. Artur |
@mp911de agree |
@akonczak I noticed that you've been doing work on a 5.0.x-prep branch. Is that work meant to compliment this PR or replace it? |
I would like to use Data Spring with Elasticsearch 5.2.2, but it looks like it will take a while, this version 5.x. See this post: But I would still like to use spring-data 😢 |
Hello, as many of you have already noticed that we are working in the branch for upgrade to 5.x. We now have compiled and all test working version of library in the branch. only exception or blocker we have is NodeClient(in-memory client) is not support anymore, so we are currently running all the integration test on local transport client. We are investigating possibility to use integration tests from elasticsearch at the moment. Meanwhile @olivergierke is Spring CI supports any virtual environment like docker where we can start elasticsearch and build the project ? just a thought. |
That's great news. Please make sure to pick up the Java 8 changes we pushed yesterday (it's on |
Hi, We at www.softbridge.fr are dependant of DATAES (and so DATAMongo and DATAJPA) I tried some PR in the past but without any success so I gave up. In this catch-all branch, we can find useful (at least for us) features like :
Now we have to migrate to ES5 and it's a bunch of work. The first problems I've seen :
I will inform of other problems I see along the way I would be happy to contribute to the version but I have the feeling that most of the PR are ignored so I don't want to waste my time in useless code repackaging Mohsinh, for the integration test embedded server problem, may be you saw that Hadoop people still continue to use embedded server with the 5.x (https://github.com/elastic/elasticsearch-hadoop/blob/fefcf8b191d287aca93a04144c67b803c6c81db5/mr/src/itest/java/org/elasticsearch/hadoop/EsEmbeddedServer.java) Franck |
@mohsinh gentle ping. What is the status of your branch? |
Hi all, any update on this ? |
Hello, thanks to @akonczak we have working branch (compile & test) for elasticsearch 5.x Also thanks @flefebure for pointing to embedded server in es-hadoop. over few days we will polish/refactor some minor code and soon its going to be merged with master. |
changes are merged to master, closing this thread. |
@mohsinh When do you plan to do a maven artifact release? Cheers |
@maxtuzz — You can find the general release plan in our wiki. The GA release (i.e. the first artifact version that appears on Maven central) is scheduled for mid July. However, we encourage users to try the milestone builds available from https://repo.spring.io/libs-milestone. In case of Kay M4, they will be available roundabout mid next week. |
Thank you very much @olivergierke I'll give M4 a go when it's available. |
Is it possible to use M4 with Spring Boot? Currently I get java.lang.AbstractMethodError probably because of spring-data-commons version difference. |
Please make sure you use the Spring Data version that ships with Spring Boot and not accidentally have customized it to a different one. If that still fails, please open a ticket in Boot containing more information (stack trace, sample etc.) |
Ok, Thanks for info. |
@mbedna you will need to use spring boot 2 milestonse (scheduled for november)or disable all elastic auto configurations. |
@tsachev I didn't think about disabling auto configuration, Thank you for sharing this idea 👍 |
Just to clarify: there is a working milestone of Spring Boot that works OOTB with the current Spring Data milestone and thus ES 5. Boot 2.0 GA is scheduled for late this year, correct. |
@olivergierke @mohsinh I've been working a lot on upgrading my project to support Elasticsearch 5.5.0 and Spring Boot M4. I've noticed a few problems though, they seem to be more related to spring data than anything else:
As you can see, Sort will always be unsorted regardless of what value I enter. Total pages will always be 1 regardless of if total elements are greater than 1 or not. I can request with (size=46) and get all 46 results fine though, however, it looks like the
Wasn't really sure where the best forum to post this was, however since it seems to all come from the Spring Data Elasticsearch upgrade path I thought here was alright.
|
same problem. @maxtuzz Have you solved it? <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
<version>2.0.0.M5</version>
</dependency> |
Hello. I open a new PR by reformatting. (Previous PR)
There are related issue that support for Elasticsearch 5.x.
No suggest support.
No suggest facet.
Facets have been replaced by aggregations in Elasticsearch 1.0, which
are a superset of facets.
SoredFields is not working in Elasticsearch 5.x,
I guess it's an Elasticsearch bug.
The string field type will continue to work during the 5.x series.
Painless, Groovy Plugins not added.
I will add the missing specification.