How were rugs and carpeted floors cleaned before the invention of the vacuum cleaner?

by burrowing_asp
Searocksandtrees