{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 3,
"successful" : 3,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 361,
"max_score" : 1.0,
"hits" : [
{
"_index" : "associate_information",
"_type" : "_doc",
"_id" : "PL00000000000120_3357",
"_score" : 1.0,
"_source" : {
"description" : "jjgkuhb",
"mobile_number" : "1111",
"status" : true,
"created_date" : "26/12/2018 12:00:14",
"branch_id" : "1245",
"address" : {
"locality" : "222",
"area" : "Visakhapatnam",
"city" : "Visakhapatnam",
"district" : "Vishakhapatnam",
"state" : "Andhra Pradesh",
"country" : "India",
"zipcode" : "530016",
"latlon" : {
"lat" : "17.7383557",
"lon" : "83.30154010000001"
}
},
"avg_rating" : 0,
"no_of_ratings" : 0,
"no_of_reviews" : 0,
"liked_by" : 0,
"services" : [
{
"name" : "trainers",
"code" : "00003",
"engage_at" : "1"
},
{
"name" : "Aerobics trainers",
"code" : "00008",
"engage_at" : "1"
}
],
"available_timings" : [ ],
"audio" : false,
"video" : false,
"branch_type" : "B2C",
"corporate_name" : "",
"roles" : [ ]
}
},
{
"_index" : "associate_information",
"_type" : "_doc",
"_id" : "HO00000009990112_3748",
"_score" : 1.0,
"_source" : {
"description" : "",
"mobile_number" : "2222222",
"status" : true,
"created_date" : "21/02/2019 15:03:37",
"branch_id" : "3748",
"address" : {
"locality" : "hyderabad",
"area" : "hyderabad",
"city" : "hyderabad",
"district" : "Ranga Reddy",
"state" : "Telangana",
"country" : "India",
"zipcode" : "500018",
"latlon" : {
"lat" : "17.385044",
"lon" : "78.486671"
}
},
"avg_rating" : 0,
"no_of_ratings" : 0,
"no_of_reviews" : 0,
"liked_by" : 0,
"services" : [
{
"name" : "ssss",
"code" : "0001",
"engage_at" : "2"
},
{
"name" : "ABD",
"code" : "0002",
"engage_at" : "2"
},
{
"name" : "AIN",
"code" : "0003",
"engage_at" : "2"
},
{
"name" : "UPPER",
"code" : "0004",
"price" : "0",
"cprice" : "600",
}
],
"available_timings" : [ ],
"is_internal_doctor" : false,
"audio" : false,
"video" : false,
"branch_type" : "B2C",
"corporate_name" : "",
"roles" : [ ]
}
},
{},
{},
{},
{},
{},
{},
{},
{}
}
]
}
}
- based on lat , lon i am searching a doc with in the doc
- in that doc i am searching for the codes with in services.