Fix to searchsimilar and api search.