Search fixes

- Fixed #2928
- Misc fixes

review: @devoncarew

`Showing only the first 1,000 matches`