Groups
Sign in
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
elasticsearch import namespaced model
8 views
Skip to first unread message
fugee ohu
unread,
Mar 3, 2018, 10:44:03 PM
3/3/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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