honor query arg in search endpoint. Fixes #1