I have a field "location : {"type":"geopoint"} in ES mapping. I wrote a script to get documents based on location. But how do I pass values to this field from Java?
I used below way, but seems not working
GeoPoint location = new GeoPoint(<>,<>);
scriptParams.put("location", location);
I get below error:
{"type":"action_request_validation_exception","reason":"Validation Failed: 1: no requests added;"}
Any help on this would be appreciated.
Thanks & Regards,
Madhu