How to get only the '_source' part of the hits. of the result

is there any way to get only the '_source' part of the result of the query .

Like from below result i want only the source part from the hits.

{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [
{
"_index" : "abc",
"_type" : "abc",
"_id" : "13",
"_score" : 1.0,
"_source" : {
"abc":125
}
}
]
}
}

@Muna You can add a filter_path query param, e.g.

GET /kibana_sample_data_ecommerce/_search?filter_path=hits.hits._source
{
  "query": {
    "match_all": {}
  },
  "size": 10
}

Returns:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.