elasticsearch import namespaced model

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

elasticsearch import namespaced model

fugee ohu
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"

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5f82bb95-d083-4917-a6d8-ff9fa290f8ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.