Skip to content

Expose metadata via dedicated class for scripting index and update contexts #86472

Closed
@stu-elastic

Description

@stu-elastic

Currently, scripts access metadata such as by various keys on the context object. Changing this to getters and setters on a metadata object will separate the document source from the metadata and allow better compile time checking for accidentally misspelled keys.

  Index API Update API Update by query API Reindex API
_index W R R W
_id R R R W
_routing R R R W
_version R R R W
_version_type R      
timestamp R      
now   R    
op   W W W

Metadata

Metadata

Assignees

Labels

:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheTeam:Core/InfraMeta label for core/infra team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions