Specifying query languages

You can use the setQueryLanguage(java.lang.String lang) method to specify a language other than the collection default language on the search server.

About this task

Use Unicode identifiers for languages to set a specific language. For example, for English, the query language parameter is en. For Chinese, use zh-CN for simplified Chinese and zh-TW for traditional Chinese.