Add basic search api, closes #3