Hi,
I have a scripted field using painless that is referencing from an existing field in my index. Below is the code snippet:
if(doc['market'].value == 'SAMPLE'){
if (doc['date field].size()==0){
return ''
} else {
return doc['last ship date'].value + ("45d")
}
}
In the scripted field setting itself, I set the type as a Date and put in a Custom Format DD-MMM-YY. However when I view it on my search it still has a timestamp format and not the one I defined.
Anyone have any idea on how to resolve this?