During the Polish-Bolshevik War the city was captured by the Reds and after the Battle of Warsaw it was again given to the Lithuanians , but it was taken by the Polish Army with few losses soon after . During the Polish-Bolshevik War the town was captured by the Communists and after the Battle of Warsaw it was again passed to the Lithuanians , but it was retaken by the Polish Army with negligible losses soon afterwards .