I wanted to maintain a field in my ES doc that maintains the count of every time I make a request to that doc such as an update request. I am unable to make a syntax of a node query. Please help me with this.
My query on console is:
"script" : "ctx._source.visits+=1",
I want to make this Query in nodejs.