Ruby on Rails
Saturday, March 3, 2018
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment