Can elastic search handle undefined values here as optional? Or should we be passing in date.now and 0?