Minor fix for search api
Merge pull request #4 from dacort/fix_search

Minor fix for search api