Fix example in documentation for Painless using _source#21322
Fix example in documentation for Painless using _source#21322jdconrad merged 1 commit intoelastic:masterfrom
Conversation
There was a problem hiding this comment.
Ooh! If you add // TEST[setup:twitter] then below // CONSOLE on this page then we'll actually try an execute the script which might be nice.
There was a problem hiding this comment.
Will do... do you mind pointing me to an existing example? Thanks in advance.
There was a problem hiding this comment.
Have a look at misc.asciidoc. That shows both that you can just execute some code (top snippet) and that you can execute some code and check the results (bottom two snippets together).
|
Oops! Let this one slip through the cracks. Going to finish it now. |
There was a problem hiding this comment.
Can you change this to params['_source']?
There was a problem hiding this comment.
Good catch. Fixed.
|
@rjernst Thanks for the review! |
* master: Clear the interrupt flag before joining Migrate to max line length of 100 Docs: Corrected path to elasticsearch-plugin (elastic#23622) Docs: Add comma to reverse nested agg snippet Fix third-party audit task for Gradle 3.4 (elastic#23612) Adapter action future should restore interrupts Update scripting.asciidoc Unmark reindex as experimental CompletionSuggestionContext#toQuery() should also consider text if prefix/regex missing (elastic#23451) Docs: Specify that byte units use powers of 1024 (elastic#23574) Remove Settings.settingsBuilder (elastic#23575) Change params._source to params['_source'] in example. Fix example in documentation for Painless using _source. (elastic#21322) Remove extra line from license header Fix num docs to be positive in bucket deferring collector test Mapping: Fix NPE with scaled floats stats when field is not indexed (elastic#23528)
* single-node-discovery: Clear the interrupt flag before joining Migrate to max line length of 100 Docs: Corrected path to elasticsearch-plugin (elastic#23622) Docs: Add comma to reverse nested agg snippet Fix third-party audit task for Gradle 3.4 (elastic#23612) Adapter action future should restore interrupts Update scripting.asciidoc Unmark reindex as experimental CompletionSuggestionContext#toQuery() should also consider text if prefix/regex missing (elastic#23451) Docs: Specify that byte units use powers of 1024 (elastic#23574) Remove Settings.settingsBuilder (elastic#23575) Change params._source to params['_source'] in example. Fix example in documentation for Painless using _source. (elastic#21322) Remove extra line from license header Fix num docs to be positive in bucket deferring collector test Mapping: Fix NPE with scaled floats stats when field is not indexed (elastic#23528)
As the title says.