-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[DOCS] Add documentation for Painless field API #83388
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
[DOCS] Add documentation for Painless field API #83388
Conversation
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
|
Pinging @elastic/es-docs (Team:Docs) |
jdconrad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a solid start! Left a few pieces of general feedback.
A couple other thoughts:
- We should probably specify this is a feature preview and is subject to change somewhere.
- Some fields do not yet work with the fields API such as text or geo since we are still trying to figure out the best values there to return, so continued use of
docthere is what is available. - Need to differentiate between fields that return primitive types versus reference types since null can't be used for primitive defaults.
|
Let's avoid converting things to |
stu-elastic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work
jdconrad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good! Left a few comments to be addressed still.
jdconrad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Table looks good to me! Thank you!
* [DOCS] Add documentation for Painless field API * Moving content to a new page and incorporating reviewer feedback * Clarify note * Incorporating review comments * Remove Object so as not to confuse it with the object type * Add section and table for supported mapped field types * Update table based on review feedback
💚 Backport successful
|
* [DOCS] Add documentation for Painless field API * Moving content to a new page and incorporating reviewer feedback * Clarify note * Incorporating review comments * Remove Object so as not to confuse it with the object type * Add section and table for supported mapped field types * Update table based on review feedback
Adds a new section for accessing documents with the
fieldAPI and explains the benefits of using this API over the old method of accessing document values.Preview link: https://elasticsearch_83388.docs-preview.app.elstc.co/guide/en/elasticsearch/reference/master/script-fields-api.html
Relates to #61388