# How do I remove \_index, \_type, \_id and \_score from output?

**URL:** <https://discuss.elastic.co/t/how-do-i-remove--index--type--id-and--score-from-output/19601>\
**Category:** Elasticsearch\
**Created:** [September 3, 2014, 6:40pm UTC](https://discuss.elastic.co/t/how-do-i-remove--index--type--id-and--score-from-output/19601 "2014-09-03T18:40:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerald\_DeConto](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Gerald\_DeConto](https://discuss.elastic.co/u/Gerald_DeConto)\
**Post date:** [September 3, 2014, 6:40pm UTC](https://discuss.elastic.co/t/how-do-i-remove--index--type--id-and--score-from-output/19601/1 "2014-09-03T18:40:08Z")

</div>

we process millions of search queries a day and are looking at adding  
elasticsearch to our toolbox

However, I haven't found a way to turn off the following redundant fields  
from the output:

\_index  
\_type  
\_id  
\_score

is there a way to only return them once in the results or to turn them off  
completely?

it doesn't make sense to have these fields returned for every document we  
get back unless we really want them returned. It bloats the response and  
adds network load

any help appreciated

--  
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/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 3, 2014, 6:47pm UTC](https://discuss.elastic.co/t/how-do-i-remove--index--type--id-and--score-from-output/19601/2 "2014-09-03T18:47:33Z")

</div>

I don't think you can as far as I remember the same thread about it some months ago.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 3 sept. 2014 à 20:40, Gerald DeConto [geralddeconto@gmail.com](mailto:geralddeconto@gmail.com) a écrit :

we process millions of search queries a day and are looking at adding elasticsearch to our toolbox

However, I haven't found a way to turn off the following redundant fields from the output:

\_index  
\_type  
\_id  
\_score

is there a way to only return them once in the results or to turn them off completely?

it doesn't make sense to have these fields returned for every document we get back unless we really want them returned. It bloats the response and adds network load

## any help appreciated

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/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [September 4, 2014, 4:56pm UTC](https://discuss.elastic.co/t/how-do-i-remove--index--type--id-and--score-from-output/19601/3 "2014-09-04T16:56:13Z")

</div>

There is a plugin which can help:

> **[GitHub - jprante/elasticsearch-index-termlist: Elasticsearch Index Termlist](https://github.com/jprante/elasticsearch-index-termlist)**
>
> Elasticsearch Index Termlist. Contribute to jprante/elasticsearch-index-termlist development by creating an account on GitHub.

--  
Ivan

On Wed, Sep 3, 2014 at 11:47 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> I don't think you can as far as I remember the same thread about it some  
> months ago.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 3 sept. 2014 à 20:40, Gerald DeConto [geralddeconto@gmail.com](mailto:geralddeconto@gmail.com) a  
> écrit :
> 
> we process millions of search queries a day and are looking at adding  
> elasticsearch to our toolbox
> 
> However, I haven't found a way to turn off the following redundant fields  
> from the output:
> 
> \_index  
> \_type  
> \_id  
> \_score
> 
> is there a way to only return them once in the results or to turn them off  
> completely?
> 
> it doesn't make sense to have these fields returned for every document we  
> get back unless we really want them returned. It bloats the response and  
> adds network load
> 
> any help appreciated
> 
> --  
> 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/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CALY%3DcQA16t8q2e014nvZofguYL-BseNozNQjeTf%2BaXWpkU7UnA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA16t8q2e014nvZofguYL-BseNozNQjeTf%2BaXWpkU7UnA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Gerald\_DeConto](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@Gerald\_DeConto](https://discuss.elastic.co/u/Gerald_DeConto)\
**Post date:** [September 8, 2014, 2:02am UTC](https://discuss.elastic.co/t/how-do-i-remove--index--type--id-and--score-from-output/19601/4 "2014-09-08T02:02:47Z")

</div>

Thx. Will take a look  
On Sep 4, 2014 9:56 AM, "Ivan Brusic" [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> There is a plugin which can help:  
> [GitHub - jprante/elasticsearch-index-termlist: Elasticsearch Index Termlist](https://github.com/jprante/elasticsearch-index-termlist)
> 
> --  
> Ivan
> 
> On Wed, Sep 3, 2014 at 11:47 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > I don't think you can as far as I remember the same thread about it some  
> > months ago.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 3 sept. 2014 à 20:40, Gerald DeConto [geralddeconto@gmail.com](mailto:geralddeconto@gmail.com) a  
> > écrit :
> > 
> > we process millions of search queries a day and are looking at adding  
> > elasticsearch to our toolbox
> > 
> > However, I haven't found a way to turn off the following redundant fields  
> > from the output:
> > 
> > \_index  
> > \_type  
> > \_id  
> > \_score
> > 
> > is there a way to only return them once in the results or to turn them  
> > off completely?
> > 
> > it doesn't make sense to have these fields returned for every document we  
> > get back unless we really want them returned. It bloats the response and  
> > adds network load
> > 
> > any help appreciated
> > 
> > --  
> > 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/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr)  
> > [https://groups.google.com/d/msgid/elasticsearch/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/Llny4z0QvQo/unsubscribe](https://groups.google.com/d/topic/elasticsearch/Llny4z0QvQo/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CALY%3DcQA16t8q2e014nvZofguYL-BseNozNQjeTf%2BaXWpkU7UnA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA16t8q2e014nvZofguYL-BseNozNQjeTf%2BaXWpkU7UnA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA16t8q2e014nvZofguYL-BseNozNQjeTf%2BaXWpkU7UnA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA16t8q2e014nvZofguYL-BseNozNQjeTf%2BaXWpkU7UnA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CANa-hjb7%2BHmmUX\_s1sFojMH4cgtNQ\_f5S5PwGU%2B28oRw9c4M4A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CANa-hjb7%2BHmmUX_s1sFojMH4cgtNQ_f5S5PwGU%2B28oRw9c4M4A%40mail.gmail.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, 1:03am UTC](https://discuss.elastic.co/t/how-do-i-remove--index--type--id-and--score-from-output/19601/5 "2017-07-06T01:03:58Z")

</div>


