Method: Elasticsearch::Resources::Document#create
- Defined in:
- lib/elasticsearch/resources/document.rb
#create(options = {}) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/elasticsearch/resources/document.rb', line 38 def create( = {}) params = { body: attributes }.merge() query(:create, params) end |