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
有沒有其他的方法呢?