make search work for non-exact queries
Merge pull request #145 from joh641/fix-search

make search work for non-exact queries