Construction of spray heads specially adapted for regeneration of the filter material or for filtrate discharging