Rails 7 - OS X - Searchkick - 客户端无法验证服务器是 Elasticsearch
Rails 7 - OS X - Searchkick - The client is unable to verify that the server is Elasticsearch
Ruby 3.0.3
Rails 7.0.0.alpha2
OS X 12.2.1
我在本地 Searchkick 上安装并按照 instructions 重新索引 Company
模型,但出现此错误。
class Company < ApplicationRecord
searchkick
end
$ curl http://localhost:9200
{
"name" : "MacBook-Pro-West.local",
"cluster_name" : "elasticsearch_guillaume",
"cluster_uuid" : "byYWvBdJRqumyBrdu_Od-w",
"version" : {
"number" : "7.17.1",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "e5acb99f822233d62d6444ce45a4543dc1c8059a",
"build_date" : "2022-02-23T22:20:54.153567231Z",
"build_snapshot" : false,
"lucene_version" : "8.11.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
$ rake searchkick:reindex:all
Reindexing Company...
The client is unable to verify that the server is Elasticsearch. Some functionality may not be compatible if the server is running an unsupported product.
rake aborted!
Elasticsearch::UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product.
我不得不将 elasticsearch
的版本降级到 7.14
。
Ruby 3.0.3
Rails 7.0.0.alpha2
OS X 12.2.1
我在本地 Searchkick 上安装并按照 instructions 重新索引 Company
模型,但出现此错误。
class Company < ApplicationRecord
searchkick
end
$ curl http://localhost:9200
{
"name" : "MacBook-Pro-West.local",
"cluster_name" : "elasticsearch_guillaume",
"cluster_uuid" : "byYWvBdJRqumyBrdu_Od-w",
"version" : {
"number" : "7.17.1",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "e5acb99f822233d62d6444ce45a4543dc1c8059a",
"build_date" : "2022-02-23T22:20:54.153567231Z",
"build_snapshot" : false,
"lucene_version" : "8.11.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
$ rake searchkick:reindex:all
Reindexing Company...
The client is unable to verify that the server is Elasticsearch. Some functionality may not be compatible if the server is running an unsupported product.
rake aborted!
Elasticsearch::UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product.
我不得不将 elasticsearch
的版本降级到 7.14
。