@justindirose is right.
A more robust but more complicated search using regex can make sure all the details of the task line are included in the results.
I can’t recall the exact query off the top of my head, but I built it into the Vantage plugin, which gives you a GUI for complex searches.