How to hide some fields in _source


(akram79) #1

Hi,

I have some data, which should be hidden/not displayed as part of the
_source.

when I set _source : { enabled : false}, source is being returned as null.

How to make some fields are not displayed, but display _source.

Regards,
Akram.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(David Pilato) #2

Can this could help you?

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html#partial

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 20 novembre 2013 at 18:00:24, Akram Hussain (akram.hussain.sk@gmail.com) a écrit:

Hi,

I have some data, which should be hidden/not displayed as part of the _source.

when I set _source : { enabled : false}, source is being returned as null.

How to make some fields are not displayed, but display _source.

Regards,
Akram.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3