elasticsearch import namespaced model

8 views
Skip to first unread message

fugee ohu

unread,
Mar 3, 2018, 10:44:03 PM3/3/18
to Ruby on Rails: Talk
My model looks like below but I've been trying to guess what model name to use for the elasticsearch import statement Anyone can help?

module Blogit
  class Post < ActiveRecord::Base

 include Elasticsearch::Model
 include Elasticsearch::Model::Callbacks
 <what-model-name-to-use-here>.import force: true

    self.table_name = "blog_posts"

Reply all
Reply to author
Forward
0 new messages