As of #15017 the fields parameter will no longer try to retrieve fields from the _source but will only return stored fields. This is a breaking change and there is nothing to warn the user that their response may well be different.
Instead, let's rename fields to stored_fields and throw an exception if the user uses fields.
Also, add docvalue_fields as an adjunct to fielddata_fields
As of #15017 the
fieldsparameter will no longer try to retrieve fields from the_sourcebut will only return stored fields. This is a breaking change and there is nothing to warn the user that their response may well be different.Instead, let's rename
fieldstostored_fieldsand throw an exception if the user usesfields.Also, add
docvalue_fieldsas an adjunct tofielddata_fields