Fields excluded from source still returned by GET api

I have a mapping like so:

    "_source" : {
        "excludes" : [
            "_*"
        ]
    }

And using search API, it behaves as expected:

]$ curl -XGET 'http://gasdb:9200/fury/product/_search?pretty=true&size=1'
{
"_score" : 1.0, "_source" :
{"folder":"/seq89/shot140/robot/377","timestamp":1371714409,"asset":"robot","name":"robot.#.dpx","path":"/jobs/fury/seq89/shot140/robot/v377/robot.*.dpx","seq":"seq89","user":"bruce.lee","shot":"shot140","ext":"dpx","version":377}
} ]
}
}

But using GET, I get back fields starting with underscores:

]$ curl -XGET '
http://gasdb:9200/fury/product/%2Fseq52%2Fshot428%2Ffern%2F854%2Ffern.%23.abc?pretty=true
'
{
"exists" : true, "_source" : {"shot": "shot428", "name": "fern.#.abc",
"seq": "seq52", "timestamp": 1371714412, "_fldr_1": "/seq52", "_fldr_3":
"/seq52/shot428/fern", "_fldr_2": "/seq52/shot428", "ext": "abc",
"version": 854, "user": "mr.satan", "_fldr_4": "/seq52/shot428/fern/854",
"path": "/jobs/fury/seq52/shot428/fern/v854/fern.*.abc", "folder":
"/seq52/shot428/fern/854", "_fields": "asset,ext,seq,shot,user", "asset":
"fern"}

Is this intended behaviour? I expected my excluded fields to be excluded in
all cases, not depending on get/search etc.

Thanks
Allan

--
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.

Hey,

what elasticsearch version do you use? There was an issue fixed in the
current 0.90.1 with realtime GET and source excludes (not sure about 0.90
right now). Can you retry with the latest version?

--Alex

On Thu, Jun 20, 2013 at 9:56 AM, Allan Johns nerdvegas@gmail.com wrote:

I have a mapping like so:

    "_source" : {
        "excludes" : [
            "_*"
        ]
    }

And using search API, it behaves as expected:

]$ curl -XGET 'http://gasdb:9200/fury/product/_search?pretty=true&size=1'
{
"_score" : 1.0, "_source" :
{"folder":"/seq89/shot140/robot/377","timestamp":1371714409,"asset":"robot","name":"robot.#.dpx","path":"/jobs/fury/seq89/shot140/robot/v377/robot.*.dpx","seq":"seq89","user":"bruce.lee","shot":"shot140","ext":"dpx","version":377}
} ]
}
}

But using GET, I get back fields starting with underscores:

]$ curl -XGET '
http://gasdb:9200/fury/product/%2Fseq52%2Fshot428%2Ffern%2F854%2Ffern.%23.abc?pretty=true
'
{
"exists" : true, "_source" : {"shot": "shot428", "name": "fern.#.abc",
"seq": "seq52", "timestamp": 1371714412, "_fldr_1": "/seq52", "_fldr_3":
"/seq52/shot428/fern", "_fldr_2": "/seq52/shot428", "ext": "abc",
"version": 854, "user": "mr.satan", "_fldr_4": "/seq52/shot428/fern/854",
"path": "/jobs/fury/seq52/shot428/fern/v854/fern.*.abc", "folder":
"/seq52/shot428/fern/854", "_fields": "asset,ext,seq,shot,user", "asset":
"fern"}

Is this intended behaviour? I expected my excluded fields to be excluded
in all cases, not depending on get/search etc.

Thanks
Allan

--
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.