Skip to content

[Painless] Context Doc Examples #34829

@jdconrad

Description

@jdconrad

Painless has some basic documentation for contexts at https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html . Each context has a separate page that describes the what variables are available to a Painless script such as doc and params. These contexts each need to be reviewed by someone familiar with the related code and have one or more examples added.

There is a data set for examples already available for download and steps to setup the an ES cluster with that data set at https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-context-examples.html . For consistency it would be ideal if any examples generated were based on this data set and the contexts put in order of dependency within the index contexts page. (Ingest needs to go first.) Each example also has a test along with the curl commands as comments in the ContextExampleTests under Painless.

Several contexts have changed recently and will need to updated to reflect those changes such as search -> score.

The following contexts need review and/or examples:

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Core/Infra/ScriptingScripting abstractions, Painless, and Mustache>docsGeneral docs changesMeta

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions