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

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 Like

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

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

Le 3 sept. 2014 à 20:40, Gerald DeConto 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/43ecc475-2e61-4071-a1eb-710b7e4cd092%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/E8C1AF2C-BEDB-4249-88A3-DE05A45CE9C5%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

There is a plugin which can help:

--
Ivan

On Wed, Sep 3, 2014 at 11:47 AM, David Pilato david@pilato.fr wrote:

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

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

Le 3 sept. 2014 à 20:40, Gerald DeConto 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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
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?utm_medium=email&utm_source=footer
.

For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA16t8q2e014nvZofguYL-BseNozNQjeTf%2BaXWpkU7UnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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

There is a plugin which can help:
GitHub - jprante/elasticsearch-index-termlist: Elasticsearch Index Termlist

--
Ivan

On Wed, Sep 3, 2014 at 11:47 AM, David Pilato david@pilato.fr wrote:

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

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

Le 3 sept. 2014 à 20:40, Gerald DeConto 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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
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?utm_medium=email&utm_source=footer
.

For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit 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.