Suppose I have JSON as follow.
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "users",
"_type": "students",
"_id": "AWAEqh945A0BWjveqnd0",
"_score": 1,
"_source": {
"college": {
"sport": {
"name": "cricket",
"category": "batsman"
}
}
}
}
]
}
}
I want to map data to College object which start from _source field.
Is there way to say to Jackson or Gson to from where mapping should start ? in this example from _source
The Response we get from ES server. ES server hosted on AWS. So we suppose to communicate through ES Java API RestClient. Is it ok Query through ES Java API QueryBuilder. What is Recommended. ?