Comments (4)
Pasting my response:
The right answer is to maintain multiple branches for each version -- it's what all the other major ES libraries do. I'd rather not try to extract some shared classes and try to have one piece of code support multiple versions -- given the way we test and build the repo it just isn't pragmatic.
In a world where we were trying to make the best possible public library, we'd maintain a 2.x branch and a 5.x branch. I'm not saying we should necessarily go to that length. Anyone still on 1.x won't be able to use the new releases (full stop). A 1.x branch will be created if it hasn't already to backport changes to 1.x.
from elasticsearch-client.
The scenario that I'm worried about with the multiple branch situation is how the client can handle upgrading elasticsearch server versions. Depending on how we do the upgrade, we might actually have the same java binary talking to a 1.x and 2.x server (or 2.x and 5.x) simultaneously; that java code can only have one version of the elasticsearch-client
jar in its class path. And even if we do the upgrade in a way that there's only one elasticsearch server version running at any given time, I'd prefer not to structure things so that, when we flip the switch on the server, we also have to change our deployed code in lockstep with flipping the switch on the server.
from elasticsearch-client.
from elasticsearch-client.
yeah, that seems entirely reasonable to me. I don't see any reason to try to support all versions at once, the transitions are what matter.
from elasticsearch-client.
Related Issues (20)
- QueryDsl QueryRoot.toJson incorrect for sort HOT 2
- Add supported ES version to readme HOT 1
- runRawEsRequest DELETE on a document throws an org.json4s.MappingException HOT 3
- Please create an OperationType for Delete to support bulk deletes HOT 5
- _timestamp is deprecated HOT 1
- Create BreakingChanges.md HOT 2
- Swap out spray for Akka http HOT 4
- Readme says "targeted at ES 1.x" HOT 2
- deleteDocument API can fail with obscure error
- deleteDocument API doesn't delete all the matching items HOT 1
- Refactor BulkOperation
- Upgrade the elastic search client to support the latest version 6.0 (current) HOT 2
- RestlasticSearchClient disconnect method HOT 2
- Batch size is too large, size must be less than or equal to: [10000] HOT 6
- ES5/ES6 support release tentative date? Any chances of releasing it this month? HOT 4
- Move support of NestedMapping and MultiFieldsMapping from 2.0.8.1 brach to latest master.
- Readme says "6.0.0" but this has not been published to Maven
- support Exists query HOT 1
- Any plans to support scala 2.13?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-client.