-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support for Elastic 7.x #1692
Comments
@janmyszkier are You working on this one? How does it look like at Your end? |
@pkarw not having as much time as I'd like but slowly going forward. So far I managed to make it write to multiple indexes. Will take another shot at it (tomorrow max) and submit a WIP PR so you can all see where we're at |
Cool, thanks for the heads up |
refactor also needed in
|
@pkarw considering the 6.0 is not supported anymore according to https://www.elastic.co/support/eol maybe we should re-do this for 7.1 instead? |
Yes, it should more like: most recent stable Elastic version available :) |
@janmyszkier did a great job that can be continued in here:
|
the current TODO is my opinion is as follows: Rely on config to decide which format to use Update indexer scripts
Migration script (@pkarw please Note: I also changed initial issue comment as it pointed at vue-storefront/package.json, but it's vue-storefront**-api** where |
https://github.com/DivanteLtd/vue-storefront-api/pull/342/files We probably won't gonna make it to Vue Storefront 1.11rc-1 - but we'll try to include the Elastic 7 support in 1.11rc-2 as it's pretty much required for the LTS |
I'm submitting a ...
What is the current behavior?
Currently we’re storing multiple document types (product, attribute, categories, taxrules) in single index (vue_storefront_catalog by default). ES 6.x is no longer supporting this setup and requires us to have:
https://www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html
I believe that we should follow the A (looking forward to Your feedback!) using the following naming convention for indexes:
We should avoid as many changes required on the users as we could.
Changes in the config
The index name should be changed just before reaching the ES - ** without requiring the config changes** (eg. we have
vue_storefront_catalog
in the config so we can just add theentityType
toindexName
in here: https://github.com/DivanteLtd/vue-storefront-api/blob/e0aa58460f6a986e2527f364946fc751620d7428/src/api/catalog.js#L55)Automatic migration
We can base on
apiVersion
( https://github.com/DivanteLtd/vue-storefront-api/blob/e0aa58460f6a986e2527f364946fc751620d7428/config/default.json#L33) and check - if there is the6.x
selected we should run the automatic migration invue-storefront-api
+ placing a lock file like.es.migrated
- to let the script know no further migration is required.It can be a separate migration script or just another migration (then no lock file is required) -> https://github.com/DivanteLtd/vue-storefront-api/tree/master/migrations
This change should be TRANSPARENT to the frontend VS - with no changes required (both config, and code)
To do so we must refactor:
Later on:
We should have the ES 6.x supported by default
The main motivation is that we re bound to 5.x
The text was updated successfully, but these errors were encountered: