elastic / elasticsearch-rails

Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
Apache License 2.0
3.07k stars 797 forks source link

Backward compatibility for older Elasticsearch version #1062

Open xcodephile opened 1 year ago

xcodephile commented 1 year ago

If i refer to here, it says that the version numbers follow the Elasticsearch major versions.

Currently, i have Elasticsearch v5.1.2 and elasticsearch-rails v5. The plan is to upgrade Elasticsearch from 5 to version 7. What should i do? Does version 7 (main) support Elasticsearch version 5? Or i should upgrade it twice, so: upgrade the lib to 6 > upgrade Elasticsearch to 6 > upgrade the lib again to main > then upgrade Elasticsearch to 7.

zaru commented 1 year ago

@xcodephile The library is backward compatible, so you should be able to address this by first updating elasticsearch-rails, and then updating the Elasticsearch core itself (recreating the index).