Conversation
|
Maybe we should add another example that shows some Painless scripting feature? |
|
You're right @LeeDr ... the current styles for Here's how can you can update your PR to the above screenshot:
.heading5 {
font-size: 16px;
font-weight: 700;
}
|
|
@tbragin unless I'm missing something, I think this is orthogonal to the filter issue. The note is useful, but the current wording and structure might be a bit confusing. The note is really applicable to both painless and expressions, but the current format makes it look like it just applies to painless. Also, it's not strictly true that access to field values in scripts require doc values. If they've read the ES docs, users might have seen _source being accessed so this wording could confuse them. doc_values are required because of the way we use those scripts. For now it might be sufficient to say "Field access in Kibana scripted fields should be done via doc values. Doc values are supported (and on by default) by almost all field types...(and so on)" |
|
@Bargs I'm fine with other wording, so long as I can easily relate it to something I can see on the Fields tab. I don't want it to describe doc values and the user doesn't have a clue to figure out what has doc values. And if this applies to both expression and Painless scripts we should definitely move the text above the script-specific sections. |
|
Hi @LeeDr, do we still need this PR? There's no updates in over a year. |
💔 Build Failed |
|
Apparently I'm not treating this with much priority. I'll close it and maybe I'll come back around to it someday... |

Added 2 h5 headers "Painless:" and "Expression:". But I'm not thrilled with how they look. Maybe should be bigger?
Added note that says;
Sorting, aggregations, and access to field values in scripts require doc values which are supported (and on by default) on almost all field types, with the notable exception of analyzed string fields. You can check the Fields tab to make sure the fields you want to use in your scripts are aggregatable and not analyzed before using them in a script.
Before:

After:
