updates api to handle language searching