# Excluding \_id, \_type, \_index etc. in the output

**URL:** <https://discuss.elastic.co/t/excluding--id--type--index-etc-in-the-output/22548>\
**Category:** Elasticsearch\
**Created:** [March 6, 2015, 10:00am UTC](https://discuss.elastic.co/t/excluding--id--type--index-etc-in-the-output/22548 "2015-03-06T10:00:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lasseschou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lasseschou/32/845_2.png) [@lasseschou](https://discuss.elastic.co/u/lasseschou)\
**Post date:** [March 6, 2015, 10:00am UTC](https://discuss.elastic.co/t/excluding--id--type--index-etc-in-the-output/22548/1 "2015-03-06T10:00:36Z")

</div>

Hi,

See  
this: [http://stackoverflow.com/questions/23968200/exclude-id-and-index-field-in-elasticsearch-result-data](http://stackoverflow.com/questions/23968200/exclude-id-and-index-field-in-elasticsearch-result-data)

It looks like there's no way to avoid outputting fields like \_id, \_type,  
\_index etc when getting a search result back. I have a usecase where I want  
to retrieve one script-fields on a result list of around 20,000 items. The  
output is around 5 times bigger that it could be, if I could avoid sending  
the \_id, \_type, etc.

Is this a planned feature in upcoming releases of ES?

Thanks,  
Lasse

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/47fd597b-53ca-4b6c-8cd7-15c1444909b7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/47fd597b-53ca-4b6c-8cd7-15c1444909b7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:28am UTC](https://discuss.elastic.co/t/excluding--id--type--index-etc-in-the-output/22548/2 "2017-07-06T00:28:07Z")

</div>


