你好,有人对searchkick(弹性搜索)非常友好吗? 我有一种情况,当我想用Model.reindex重新索引我的模型时,它会返回我:
> `irb(main):001:0> Offer.reindex D, [2017-10-18T12:11:54.141503 #4]
> DEBUG -- : Offer Load (1.9ms) SELECT "offers".* FROM "offers"
> ORDER BY "offers"."id" ASC LIMIT $1 [["LIMIT", 1000]] D,
> [2017-10-18T12:11:54.241929 #4] DEBUG -- : Offer Import (71.7ms)
> {"count":32}
> => true
但是,当我执行我的搜索请求时,它没有回复我,直到它现在工作得很好而没有做任何事情。
以下是searchkick附加组件的最后日志
{"error":{"root_cause":[{"type":"index_not_found_exception",
"reason":"no such index", "resource.type":"index_or_alias","resource.id":"offers_production","index_uuid":"_na_","index":"offers_production"}],
"type":"index_not_found_exception",
"reason":"no such index","resource.type":"index_or_alias",
"resource.id":"offers_production","index_uuid":"_na_","index":"offers_production"},"status":404}
提前感谢您的帮助.. 如果你需要我还没有分享的更多信息,请问我!
JOE