Indonesia = Greek Indos ("India/Indian") + nesos ("island") = "Indian Islands" or "Islands of the Indies."
European geographers coined the term in the 18th century for the archipelago between the Indian Ocean and Pacific. "Indies" distinguished it from the "West Indies" (Caribbean). The Dutch colonial administration used "Nederlandsch-Indië" (Netherlands Indies).
Indonesian nationalists adopted "Indonesia" in the early 20th century as a unifying identity transcending the Dutch construct. It became official on independence in 1945.
The name reflects geographic position relative to India—not ethnic or cultural connection to the Indian subcontinent. The archipelago's indigenous peoples (Austronesian, Papuan) had their own names for their islands.