Skip to content

Change QueryTemplateParser to use script naming convention #9995

@colings86

Description

@colings86

At the moment the QueryTemplateParser uses query, file and id for inline, file and indexed scripts respectively. Since the naming convention for scripts is now script, script_file and script_id (enforced by using the ScriptParameterParser) we should change this API to follow the same convention. We may want to keep query as an option for inline scripts as it makes sense in this context but we should support script too. file and id should be replaced with script_file and script_id.

Original comment in: https://github.com/elasticsearch/elasticsearch/pull/9992/files#r25855691

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions