I'm using ES to store rainfall data from a weather API that updates every 10 minutes. I'm trying to write a query to return a set of records where a spell of dry weather ( 30 consecutive rain values in the range of 0 to 0.2) is followed by rainfall ( values 0+) to the present time. I was hoping to use a regex, but my values are floats and the query errors.
I'm new to ElasticSearch and am hoping that someone can give me some guidance of how best to construct a query.