I am using the following code for partial update
POST /website/blog/1/_update
{
"script" : "ctx._source.views+=1"
}
is there any alternative way I can achieve the same thing. because I don't want to change anything in groovy script because last time I changed the settings and my server was compromised.
So someone please help me with the solution or some security measures if there is no work around.