In a previous version of Kibana I had some controls that in the new version are deprecated.
As I imported the visualizatiosn to the new version, I changed the control to the new verson funcionality,.
One of my fields was a scripted field in the old version, but in the new does not appear to be selected in control .
The fact is that, I need to create a extra field that act like a dictionary for a numeric field and later it will be used as in a control to act like a filter.
e.g. of the field code:
if (doc['header.type'].value == 0 )
{
emit('Macro');
}
if (doc['header.type'].value == 1 )
{
emit('Posição');
}
if (doc['header.type'].value == 2 )
{
emit('Ack');
}
I tried to create a field in data view with this code, but as I select it in my dashboard control no values appears.
Than I tried also to recreate the scripted field but it does not appear to be selected in my dashboard control.
How can I handle that?
Thanks