Skip to content

Script processor doc links to update API examples which is confusing #72645

@ppf2

Description

@ppf2

On this page (https://www.elastic.co/guide/en/elasticsearch/reference/master/script-processor.html), we link to the general scripting examples page that is used by the update API.

See How to use scripts to learn more about writing scripts. The Script Processor leverages caching of compiled scripts for improved performance. Since the script specified within the processor is potentially re-compiled per document, it is important to understand how script caching works. To learn more about caching see Script Caching.

This is misleading because the ingest processor context for painless is different from the update API. Users end up trying to get the update API examples working (for example, ctx._source does not work in the ingest node context).

It will be helpful to have an example page linked from script processor that is for ingest node (does not include all the examples for other non-ingest use cases of painless), or provide ingest node script processor examples directly on the script processor page. Thx!

Metadata

Metadata

Assignees

Labels

:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIP>docsGeneral docs changesTeam:Data ManagementMeta label for data/management teamTeam:DocsMeta label for docs team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions