lib/elasticsearch/api/actions/indices/analyze.rb in elasticsearch-api-1.0.18 vs lib/elasticsearch/api/actions/indices/analyze.rb in elasticsearch-api-1.1.pre
- old
+ new
@@ -62,9 +62,12 @@
:text,
:tokenizer,
:token_filters,
:format ]
+ unsupported_params = [ :explain, :attributes ]
+ Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
+
method = HTTP_GET
path = Utils.__pathify Utils.__listify(arguments[:index]), '_analyze'
params = Utils.__validate_and_extract_params arguments, valid_params
params[:filters] = Utils.__listify(params[:filters]) if params[:filters]