The actual machete is usually referred to as a "bolo" ranging from 24” to 32" long, but can also be a generic term just meaning “sword,” any sword.
A sword which can be a little shorter is sometimes called a “barong” usually ranging from 22” to 28” long. As you can see the ranges overlap, this sometimes causes the terms to be interchangeable by non-Filipino people.
But… the terms are more regional or ethnic, than referring to long and short. The bolo is the popular term for the northern, Tagalog speaking people. The word “barong” in Tagalog is sometimes used to describe a fancy, embroidered shirt.
Now... amongst the southern Moro the word “barong” or “Moro Barong” refers to a short sword.
The word “Moro” is old Spanish referring to “Moors,” which was a term used to describe the non-Christian, or more specific, Muslim people that occupied parts of present day Spain, Portugal and Northwestern Africa. The term was then used by the Spanish to describe the southern native Filipinos who had Islam as their religion.
You must not fight too often with one enemy, or you will teach him all your art of war.