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
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
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
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.