Context. In the first two examples both sentences sound exactly the same, but it has never been a problem.
In some examples I‘d maybe expect stronger emphasis on the noun. ‚Sucht‘ (short u) vs ‚sucht‘ (long u) from the last example are pronounced very differently.