Skip to content

Commit 651d803

Browse files
committed
Remove nil doc type for import
1 parent 482ed7f commit 651d803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-model/lib/elasticsearch/model/importing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def import(options={}, &block)
163163
index: target_index,
164164
type: target_type,
165165
body: __batch_to_bulk(batch, transform)
166-
}
166+
}.compact
167167

168168
params[:pipeline] = pipeline if pipeline
169169

0 commit comments

Comments
 (0)