Skip to content

Use elasticsearch's key_as_string to display field-values #7975

Closed
@thomasneirynck

Description

@thomasneirynck

ES responses include the key_as_string values when aggregating results. This is a human readable version of the field-value.

For example:

Kibana currently does not use the key_as_string value at all.

Kibana has a separate formatting layer: field formatters. These can be applied to one or more field-types.

  • Are we unnecessarily duplicating functionality?
  • What is the added value of field formatters when ES already returns pre-formatted strings?
  • Should Kibana use key_as_string as the default way of showing a field-value? Or in the absence of a field formatter?
  • Is the key_as_string-value sufficient to eliminate simple field-formatters? See also Add Boolean field formatter #7935, which introduces a Boolean field formatter so Kibana pretty-prints booleans for legends and axis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions