min/max/avg raise when doc is not found