Null_value for old values


(Yehuda Zargarov) #1

Hi,

I've extended an existing schema with a new field.
I added "null_value":-1 to the mapping.

Should I be able to search for old data with the null value (with -1)? or
does it only applies to new data?

Thanks,

Yehuda


(Shay Banon) #2

It only applies to new data, though note that null_value only applied when
a json null is provided. If there isn't a null_value, you can use missing
filter, which will also match on old data (since old data doesn't have hte
field).

On Mon, May 21, 2012 at 5:24 PM, Yehuda Zargarov yz1583@gmail.com wrote:

Hi,

I've extended an existing schema with a new field.
I added "null_value":-1 to the mapping.

Should I be able to search for old data with the null value (with -1)? or
does it only applies to new data?

Thanks,

Yehuda


(system) #3