"Water filter" covers everything from a pitcher on the counter to a set of tanks in the garage. They don't all do the same job, so it helps to start with the problem you want solved rather than the product.
Some strain out particles (mechanical filtration). Some hold contaminants on a surface (adsorption, the way carbon works). Others change the water chemically. Each method handles a different set of problems.
Filters treat either all the water entering the house or the water at a single tap. That choice shapes cost, maintenance and what the filter can realistically handle. The next page compares the two.
For more detailed reference material, see Water System Guide. If hardness is your main issue, a filter may not be the right tool. Water Softener Basics covers softening.