Hiding common fields in ES response


(Prashant Agrawal) #1

Hi ES Users,

Is there any way I can hide some of the common fields which are being returned as a response by ES.

e.g if I get the response as below:
{
took: 74
timed_out: false
_shards: {
total: 15
successful: 15
failed: 0
}
hits: {
total: 24
max_score: 0.15932977
hits: [
{
_index: prashant
_type: session
_id: LeIDrUNmSKGC5Sl9Y8O0Zw
_score: 0.15932977
fields: {
Time: [
2014-01-08T15:01:26
]
}
}
{
_index: prashant
_type: session
_id: dlpQGXk_TOyfNnUEG6skeQ
_score: 0.14296037
fields: {
Time: [
2014-01-08T15:01:26
]
}
}

Now I want the ES to response without took,timed_out,_shards,total,successful,failed value as well I dont want the Name of the _index and _type as I am executing the query to particular index and type.

So is there a way to filter the ES response in that way?


(Prashant Agrawal) #2

Is there any way around for this case?


(system) #3