Added support for custom language in query search functions