mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
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:
parent
3b79a03c3d
commit
a58b262855
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue