0
Ruby에서 Elasticsearch 보석을 사용하여 탄성 검색 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
다른 방법이 있습니까?