-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Painless] Context Doc Examples #34829
Comments
Pinging @elastic/es-core-infra |
Do you think we should document these contexts along side the documentation for the API that they are used in? |
We should probably at least cross link. |
I would strongly prefer cross-links here as the examples will possibly depend on each other so that users can fire up a cluster and run through them like a tutorial. This way each page can come in order. And while Painless is the primary language now for most of these, there are other languages too, so I would like to keep this as part of the Painless docs. |
* Painless Context Doc: Add field context example relates to #34829
This commit improves the example docs for contexts in painless. relates elastic#34829
This commit improves the example docs for contexts in painless. relates #34829
Closing this as there are examples for the majority of contexts as this point. |
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
andparams
. 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:
The text was updated successfully, but these errors were encountered: