Hi,

Please tell me how to convert the Response from Elastic Search to Java 
Object (Map)
I want to get the values of user attributes under "_source" like 
"lastName", "firstName", "Manager", "email"


Here is the sample response from Elastic Search.
------------------------------------------------------------------------------------------------------------------------------
{
  "took" : 45,
  "timed_out" : false,
  "_shards" : {
    "total" : 5,
    "successful" : 5,
    "failed" : 0
  },
  "hits" : {
    "total" : 24,
    "max_score" : 1.0,
    "hits" : [ {
      "_index" : "ldapdata4",
      "_type" : "persons1",
      "_id" : "295950",
      "_score" : 1.0, "_source" : {"lastName":"p 
nayak","firstName":"user1","Manager":"Anthony|Kraybill|3115617|an...@zigby.com","email":"user1.na...@acs-adibirla.com"}
    }, {
      "_index" : "ldapdata4",
      "_type" : "persons1",
      "_id" : "299193",
      "_score" : 1.0, "_source" : 
{"lastName":"singh","firstName":"user1","Manager":"Michael|Beckwith|347460924|mb4ec...@zigby.com","email":"user1.sin...@acs.adibirla.com"}
    } ]
  }
}
------------------------------------------------------------------------------------------------------------------------------



Thanks !!

Regards,
Rahul



-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/709f8f6f-9b7e-42ed-a036-f61d9f7bc502%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to