0
rubyでElasticsearch gemを使って弾性検索PUTを使ってデータを挿入しようとしていますが、メソッドが見つかりませんでした。rubyを使って弾性検索にデータを挿入するには
Here is the sample code:
def self.insert_data_in_es
name = (here I am giving the url)
body = (actual data)
Elasticsearch::API::Indices::Actions.put_template(name: name, body:
body)
end
Error :
NoMethodError: undefined method `put_template' for Elasticsearch::API::Indices::Actions:Module
他の方法はありますか?