I try to using JAVA API to query elasticsearch , but return results not include @timestamp value , and i found the result is shown "message"
SearchResponse response = client.prepareSearch("logstash-")
.setTypes("log")
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
.setQuery(QueryBuilders.queryStringQuery("value").field("name"))// Query
.setFrom(0).setSize(60).setExplain(true).execute()
.actionGet();
how to get the "_source" and @timestamp into array and print out ? Please help me out.
java arraylist elasticsearch