2

我已经使用 Ruby on Rails 实现了 Bonsai 文档索引并部署在 Heroku 上。当我使用文档内容索引遍历所有文档时,某些请求会出现 http 504 错误。

我正在使用带有 rails 4.2 的 elasticsearch-api gem。

    documents.each do |document|
        client.update(
          index: 'sample_index_name', type: 'document', id: document.id.to_s, body: {doc: {doc_content: '..base64 encoded content..'}})
    end
4

0 回答 0