def to_es14_script(self, schema, not_null=False, boolean=False, many=True):
    if not self.terms:
        return TRUE.to_es14_script()
    else:
        return EsScript(
            miss=FALSE,
            type=BOOLEAN,
            expr=" && ".join("(" + t.to_es14_script(schema).expr + ")" for t in self.terms),
            frum=self
        )
def to_es14_script(self, schema, not_null=False, boolean=False, many=True):
    value = self.term.to_es14_script(schema)
    if value.expr or value.i:
        return TRUE.to_es14_script(schema)
    else:
        return EsScript(
            miss=FALSE,
            type=BOOLEAN,
            expr="(" + value.expr + ") instanceof java.lang.Double",
            frum=self
        )