Using ElasticSearch as a DB I'm looking for a way to _update a field that
doesn't exist. I don't want to set the field to 0 when first indexed
because I don't know the field names for other reasons. I assume I can't
use null_value in mapping either, since I don't know the field name BEFORE
I index the document, and setting the null_value afterwards I assume won't
help.
Returns ElasticSearchIllegalArgumentException[failed to execute script];
nested: PropertyAccessException[[Error: could not access: b; in class:
java.util.LinkedHashMap]\n[Near : {... ctx._source.b+v ....}]
I tried using isdef, but that seems to always return false, I'm probably
using it wrong.
Using Elasticsearch as a DB I'm looking for a way to _update a field that
doesn't exist. I don't want to set the field to 0 when first indexed
because I don't know the field names for other reasons. I assume I can't
use null_value in mapping either, since I don't know the field name BEFORE
I index the document, and setting the null_value afterwards I assume won't
help.
Returns ElasticSearchIllegalArgumentException[failed to execute script];
nested: PropertyAccessException[[Error: could not access: b; in class:
java.util.LinkedHashMap]\n[Near : {... ctx._source.b+v ....}]
I tried using isdef, but that seems to always return false, I'm probably
using it wrong.
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.