how does the forum search work?

Permalink
I often type a phrase and get totally random results.
I type "search by tags" and got not relevant, even just typing tags didn't help.

Anyone know how it is supposed to work?