Search code examples
ruby-on-railselasticsearchsearchkick

Elasticsearch::UnsupportedProductError (The client noticed that the server is not a supported distribution of Elasticsearch


Getting this error when using searchkick with elasticsearch on mac.

Searchkick version: searchkick (4.5.2)

$ elasticsearch --version
warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release
Version: 7.10.2-SNAPSHOT, Build: oss/tar/unknown/2021-01-16T01:41:27.115673Z, JVM: 16.0.2

To reproduce

Product.reindex


Solution

  • It worked fine after degrading to elastic search < 7.14. So basically added a gem to restrict the version upgrade

    gem  elasticsearch, "< 7.14"