Method: ElasticsearchRecord::ModelApi#index
- Defined in:
- lib/elasticsearch_record/model_api.rb
#index(data, **options) ⇒ Object
fast insert/update data. IMPORTANT: Any 'doc'-id must by provided with underscore '_' ( +:_id+ )
209 210 211 |
# File 'lib/elasticsearch_record/model_api.rb', line 209 def index(data, **) bulk(data, :index, **) end |