Fixed partial search query in API