Hi All,
I have written a scripted filed to add the count of these 2 values Identity Accepted and Identity Rejected.
These values are searched under result keyword
this is my scripted field
if (doc['result'].value == "Identity Accepted") && if (doc['result'].value == "Identity Rejected")
{
"aggs" : {
"total no of record processed" : "sum" : { "field" : "result" } }
}
but in kibana the field is showing this error

Please help me to fix this issue
