Vacuum for hardwood floors and carpet