A soluble model of electromagnetic field interacting with time-depende
nt dielectric medium is given. The main assumption is that the dielect
ric constant is switched rapidly from the initial to the final value.
Generation of electromagnetic field and photon statistics are found.