Light emitting device with a thermal insulating and refractive index matching material