question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Elastic 7.x

See original GitHub issue
  • I’m submitting a …

    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.
  • 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:

  • single index per entity type (A)
  • custom type field (B)

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:

  • vue_storefront_catalog_product
  • vue_storefront_catalog_category

We should avoid as many changes required on the users as we could.

  1. 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 the entityType to indexName in here: https://github.com/DivanteLtd/vue-storefront-api/blob/e0aa58460f6a986e2527f364946fc751620d7428/src/api/catalog.js#L55)

  2. 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 the 6.x selected we should run the automatic migration in vue-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

  1. Front-end This change should be TRANSPARENT to the frontend VS - with no changes required (both config, and code)

To do so we must refactor:

  • vue-storefront-api/src/scripts/db.js
  • vue-storefront-api/migrations
  • mage2vuestorefront
  • vue-storefront/core/store/lib/search.js
  • vue-storefront-api/package.js to modify the restore and migrate scripts
  • docker files
  • add migration scripts to reindex existing indexes to the new format

Later on:

  • What is the expected behavior?

We should have the ES 6.x supported by default

  • What is the motivation / use case for changing the behavior?

The main motivation is that we re bound to 5.x

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:9

github_iconTop GitHub Comments

1reaction
pkarwcommented, May 28, 2019

Yes, it should more like: most recent stable Elastic version available 😃

0reactions
pkarwcommented, Sep 13, 2019

https://github.com/DivanteLtd/vue-storefront-api/pull/342/files https://github.com/DivanteLtd/mage2vuestorefront/pull/96

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support Matrix | Elastic
The tables below display platform and software configurations that are eligible for support under our subscription offerings. Learn more about our Support ......
Read more >
Upgrade to Elasticsearch 7.x
Preparing for your upgrade ahead of time ensures that you can enjoy the new features and improved usability of Elasticsearch 7.x as quickly...
Read more >
Compatibility | Java REST Client [7.17] - Elastic
The Java High Level REST Client requires at least Java 1.8 and depends on the Elasticsearch core project. The client version is the...
Read more >
Elastic Product End of Life Dates
Elastic's Support Services Policy defines how long a given release is maintained and supported. Please see the Elastic Support Services Policy and the...
Read more >
Subscriptions | Elastic Stack Products & Support
Support. Support coverage. Response times. Unlimited # of incidents. Unlimited # of projects. Support contacts7.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found