# Hiding common fields in ES response

**URL:** https://discuss.elastic.co/t/hiding-common-fields-in-es-response/16417
**Category:** Elasticsearch
**Created:** [March 18, 2014, 7:30am UTC](https://discuss.elastic.co/t/hiding-common-fields-in-es-response/16417 "2014-03-18T07:30:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Prashant\_Pal](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@Prashant\_Pal](https://discuss.elastic.co/u/Prashant_Pal)
#### Post date: [March 18, 2014, 7:30am UTC](https://discuss.elastic.co/t/hiding-common-fields-in-es-response/16417/1 "2014-03-18T07:30:49Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Prashant\_Pal](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@Prashant\_Pal](https://discuss.elastic.co/u/Prashant_Pal)
#### Post date: [March 18, 2014, 12:26pm UTC](https://discuss.elastic.co/t/hiding-common-fields-in-es-response/16417/2 "2014-03-18T12:26:05Z")

</div>

Is there any way around for this case?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 1:42am UTC](https://discuss.elastic.co/t/hiding-common-fields-in-es-response/16417/3 "2017-07-06T01:42:32Z")

</div>


