lib/elasticsearch/api/actions/index.rb in elasticsearch-api-1.0.18 vs lib/elasticsearch/api/actions/index.rb in elasticsearch-api-1.1.pre
- old
+ new
@@ -87,9 +87,12 @@
:timestamp,
:ttl,
:version,
:version_type ]
+ unsupported_params = [ :pipeline ]
+ Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
+
method = arguments[:id] ? HTTP_PUT : HTTP_POST
path = Utils.__pathify Utils.__escape(arguments[:index]),
Utils.__escape(arguments[:type]),
Utils.__escape(arguments[:id])