I have a document like:
> "_index": "nested_obj_demo",
"_type": "_doc", "_id": "1", "_score": 1, "_source": { "price": 125, "obj1": [ { "score": 11 } ] }
I want to calculate a function score by multiplying the obj1.score and price value of parent document. I try to create a function score in nested query where I could not able to access parent document price. And also I tried to create a scripted field in nested query that also not working...Any help!!!