Update core/search.go

Fixes #11