Update core/search.go

Fixes #11
Merge pull request #12 from mschoch/patch-1

Update core/search.go