はじめに "railsから全文検索エンジンelasticsearchを利用する"では、tireを用いてrailsからelasticsearchを扱う方法を説明しました。 この時、基本的なデータはデータベース上に永続化し、elasticsearchは検索用のインデックスとしてのみ使用していました。 今回はDBには永続化せずにelasticsearch上のみでCRUDが出来るようにしてみます。 注意:elasticsearch用rubyクライアント 今回、elasticsearchとの連携はtireを用いていますが、 これからは後継のプロジェクトである elasticsearch-ruby 及び elasticsearch-rails の方が主流になっていくと思います。 モデルの準備 データベースを用いて永続化を行う際、通常はActiveRecord::Baseを継承したモデルを用いますが、今
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く