Suppose that I have a substance dissolved in water. I then pour the solution into a filter. The filter's pores are large enough to allow the passage of water, but not the passage of the substance. In this case, would the substance come out of solution as the water goes through the filter but the substance doesn't, thus resulting in a solute being filtered out of a solvent? In this scenario, the substance is a molecular compound that does not dissociate into ions when dissolved.
In a second scenario, what if the substance is an ionic compound like salt, and the filter's pores are large enough to let one of the ions through (And of course, water molecules can also pass), but not the other? What would happen then?