Ah yes, it looks like your watch doesn't have a condition, so the action will always be run, no matter what comes back from the query.
I would imagine that you could use a compare condition that looks at ctx.payload.hits.total > 0
Ah yes, it looks like your watch doesn't have a condition, so the action will always be run, no matter what comes back from the query.
I would imagine that you could use a compare condition that looks at ctx.payload.hits.total > 0
© 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.