Hi!
I'm trying to use a scripted field to build some visualization at Kibana, but something is going wrong.
When I am at Management -> Index Pattern -> Create Scripted Field and preview the results for my script, it returns the first ten results. But when I try to see at Dicovery, I've got: "No results match your search criteria".
I've scripetd two fields but only the second one is causing trouble.
Could you help me?
test_conv:
if(doc['deb_cred.keyword'].value != 'S' &&
doc['tipo_evento.keyword'].value == '1'
) {
return doc['item.qtde_doc_item'].value*-1;
}
return doc['item.qtde_doc_item'].value;
conv_qtde_item:
if(doc['event.keyword'].value == 'history_purchase_document'
) {
return doc['test_conv'].value*((doc['preco_doc'].value/doc['preco_unid'].value)*(doc['conv_denon'].value/doc['conv_numer'].value))
}
else {
return "";
}