Ruby 3.0.3
Rails 7.0.0.alpha2
OS X 12.2.1
我在本地 Searchkick 上安裝并按照說明重新索引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.
uj5u.com熱心網友回復:
我不得不降級 to 的elasticsearch版本7.14。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/446605.html
標籤:轨道上的红宝石 弹性搜索 搜索踢 ruby-on-rails-7
