Can you try something like this for each field you want to test?
if (doc().containsKey(field)) {
ScriptDocValues fieldValue = (ScriptDocValues)
doc().get(field);
if (fieldValue != null && !fieldValue.isEmpty()) {
//not empty!
}
}
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/26c1f284-8a62-4449-b88f-f50e54fbbe57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.