Update script, fetching stored (but non _source) field


(Jérémie BORDIER) #1

Heya,

I have a field 'binary' that is not stored into _source, but I still
use _source for the other fields.

Is there a way to fetch this field in the update script to avoid
losing it by re-setting it ?

Cheers,
Jérémie


(Igor Motov) #2

It doesn't seem to be possible at the moment. The script in the update api
has only access to the document source.

On Thursday, April 19, 2012 11:57:06 AM UTC-4, Jérémie BORDIER wrote:

Heya,

I have a field 'binary' that is not stored into _source, but I still
use _source for the other fields.

Is there a way to fetch this field in the update script to avoid
losing it by re-setting it ?

Cheers,
Jérémie


(system) #3