lib/elasticsearch/api/actions/bulk.rb in elasticsearch-api-1.0.18 vs lib/elasticsearch/api/actions/bulk.rb in elasticsearch-api-1.1.pre
- old
+ new
@@ -62,19 +62,22 @@
# @see http://elasticsearch.org/guide/reference/api/bulk/
#
def bulk(arguments={})
arguments = arguments.clone
- type = arguments.delete(:type)
+ type = arguments.delete(:type)
valid_params = [
:consistency,
:refresh,
:replication,
:type,
:timeout,
:fields,
:pipeline ]
+
+ unsupported_params = [ :fields, :pipeline ]
+ Utils.__report_unsupported_parameters(arguments, unsupported_params)
method = HTTP_POST
path = Utils.__pathify Utils.__escape(arguments[:index]), Utils.__escape(type), '_bulk'
params = Utils.__validate_and_extract_params arguments, valid_params