Fix a couple bugs in the search code.

Need to do a left join so that records with no notes get returned!

Need to reject empty query partials.