Open n0othing opened 3 years ago
Pinging @elastic/kibana-app (Team:KibanaApp)
This is a bug in field formatters, not visualizations. I agree that true and false mapping should work as implied in the description.
any update on this?
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
For anyone still encountering this issue, a workaround is to create a scripted field of "Type: number" and "Format: Static Lookup".
Add entries for 0 and 1 mapping to the string you want for false and true correspondingly.
Then the script can just be return params._source.<original_bool_field>
.
Kibana version:
7.13
Elasticsearch version:
7.13
Describe the bug:
Visualizations display "0" and "1" for boolean fields with a static lookup formatter. Classic Visualize's pie chart behaves extra weird.
Steps to reproduce:
boolean
data typePOST index/_doc?refresh { "boolean_field": false }