add index to es persist_message call