Update managing-fields.asciidoc (#9739)

* Update managing-fields.asciidoc

* Remove references to Groovy
* Add information about Painless
* Link to blog for additional examples

* Update managing-fields.asciidoc

Make editorial changes per @debadair's feedback.
This commit is contained in:
Tanya Bragin 2017-01-13 07:54:06 -08:00 committed by Court Ewing
parent 0e62924138
commit 2c0dd01418

View file

@ -72,9 +72,13 @@ WARNING: Computing data on the fly with scripted fields can be very resource int
Kibana's performance. Keep in mind that there's no built-in validation of a scripted field. If your scripts are
buggy, you'll get exceptions whenever you try to view the dynamically generated data.
Scripted fields use the Lucene expression syntax. For more information,
see {es-ref}modules-scripting-expression.html[
Lucene Expressions Scripts].
When you define a scripted field in Kibana, you have a choice of scripting languages. Starting with 5.0, the default
options are {es-ref}modules-scripting-expression.html[Lucene expressions] and {es-ref}modules-scripting-painless.html[Painless].
While you can use other scripting languages if you enable dynamic scripting for them in Elasticsearch, this is not recommended
because they cannot be sufficiently {es-ref}modules-scripting-security.html[sandboxed].
WARNING: Use of Groovy, Javascript, and Python scripting is deprecated starting in Elasticsearch 5.0, and support for those
scripting languages will be removed in the future.
You can reference any single value numeric field in your expressions, for example:
@ -82,6 +86,9 @@ You can reference any single value numeric field in your expressions, for exampl
doc['field_name'].value
----
For more background on scripted fields and additional examples, refer to this blog:
https://www.elastic.co/blog/using-painless-kibana-scripted-fields[Using Painless in Kibana scripted fields]
[float]
[[create-scripted-field]]
=== Creating a Scripted Field
@ -98,9 +105,6 @@ To create a scripted field:
For more information about scripted fields in Elasticsearch, see
{es-ref}modules-scripting.html[Scripting].
NOTE: In Elasticsearch releases 1.4.3 and later, this functionality requires you to enable
{es-ref}modules-scripting.html[dynamic Groovy scripting].
[float]
[[update-scripted-field]]
=== Updating a Scripted Field