Hiding and showing fields in search results and _source

Hi Clinton

On Tue, Sep 18, 2012 at 11:24 AM, Clinton Gormley clint@traveljury.com wrote:

Good point about storing the whole source. However using partial
fields still returns the whole source plus the partial fields if I
recall correctly from my last tests...
No. If you request any field (or partial field) then it only returns the
_source if you specifically request it.
If I request a single field, which is not in the source (excluded via
mapping config), the _source will not be returned.
If I request a single field, which excluded from the source plus a
field being stored in it, I'll get back the whole source.

Perhaps this is a bug, I'm not sure. I can provide a minimal sample if needed.

--Alexander

--