Merge pull request elastic#18287 from rmuir/input_goes_params …
painless: remove input, support params instead