Easy-Es Easy-Es
💋Home
  • v3.0.0(current version)
  • What's New

    • What' s New In Easy-Es v3.0.0?
  • history version

    • v1.x.x
    • v2.x.x
  • Upgrade guide

    • Upgrade to 3.x.x instructions
💖Support
  • OS Community
  • Recommend Goods
  • Project PPT (opens new window)
  • Project introduction
  • Project members
  • PR
Join
Customer
  • Doc-Apis (opens new window)
  • Fitness plan automatic generation system (opens new window)
  • Vuepress-theme-vdoing (opens new window)
  • Gitee (opens new window)
  • GitCode (opens new window)
  • Github (opens new window)
  • 简体中文 (opens new window)
  • English (opens new window)

adv display by random ❤️become sponsor
💋Home
  • v3.0.0(current version)
  • What's New

    • What' s New In Easy-Es v3.0.0?
  • history version

    • v1.x.x
    • v2.x.x
  • Upgrade guide

    • Upgrade to 3.x.x instructions
💖Support
  • OS Community
  • Recommend Goods
  • Project PPT (opens new window)
  • Project introduction
  • Project members
  • PR
Join
Customer
  • Doc-Apis (opens new window)
  • Fitness plan automatic generation system (opens new window)
  • Vuepress-theme-vdoing (opens new window)
  • Gitee (opens new window)
  • GitCode (opens new window)
  • Github (opens new window)
  • 简体中文 (opens new window)
  • English (opens new window)
LaoHan
2025-03-29

Upgrade to 3.x Guide

The upgrade from 2.X to 3.X brings numerous underlying optimizations, new features, and bug fixes. This includes the highly anticipated replacement of Fastjson with Jackson and full compatibility with ES 8.X, significantly enhancing the user experience! Notably, despite being a major version update, the changes required from users are minimal. In many cases, only minor adjustments or none at all are needed for compatibility. We strongly recommend upgrading to version 3.X.

To upgrade from 2.X to 3.X, you need to do the following:

  • Check your ES version. If it's 7.X, add easy-es.compatible=true to the configuration file to enable compatibility mode. No addition is needed for ES versions >=8.0.
  • Check if your data model class writes the primary key field id to the source. If not, add @IndexId(writeToSource = false). No addition is required if it's already written.
  • If you've used parent-child types before, each node class needs to inherit the framework's built-in BaseJoin. No other adjustments are needed.
  • Check the score field returned by ES (annotated with @Score). Its type needs to be changed from Float to Double.
  • This update removes Fastjson dependencies. If you use Fastjson in non-easy-es code, you can keep or reintroduce Fastjson dependencies without code changes, or replace Fastjson with Jackson.
  • RestHighLevelClient has been removed and replaced with ElasticsearchClient. If you used RestHighLevelClient for native queries, adjust to ElasticsearchClient calls. The framework's built-in ElasticsearchClient is compatible with RestHighLevelClient syntax, so only minor code adjustments are needed. No action is required if you didn't use native queries.

提示

Although this is a major version update with significant underlying changes, our developers have handled backward compatibility well. The changes required from users are minimal. We recommend upgrading to the more powerful 3.X version as soon as possible. The benefits of 3.X far outweigh the minor modifications needed!

Help us improve this document (opens new window)
Last update: 2025/08/02
Theme by Vdoing | Copyright © 2021-2025 LaoHan | Zhejiang ICP No. 2022020479 | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式