Language codes for EQL error messages

You can set the language to be used for EQL parsing error messages.

The Request complex type has an optional Language element that sets the language for error messages that result from EQL parsing. The supported languages and their corresponding language codes are:
  • Chinese (simplified): zh_CN
  • Chinese (traditional): zh_TW
  • English: en
  • French: fr
  • German: de
  • Italian: it
  • Japanese: ja
  • Korean : ko
  • Portuguese: pt
  • Spanish: es

If a language code is not specified, then en (English) is used as the default.

Note that this Language element serves a different purpose from the Language attribute in the TextSearchFilter type (for record search) and the ValueSearchConfig type (for value search).

Example of setting a language code

The following example shows where in the request you would specify the Language element for EQL parsing error messages:
<Request xmlns="http://www.endeca.com/MDEX/conversation/3/0">
   <Language>fr</Language>
   <State>
      <SelectionFilter Id="AmtFilter">
         <filterString>AMOUNT_SOLD > 1000</filterString>
      </SelectionFilte>
   </State>
   ...
</Request>

In this example, fr (French) is set as the language in which all EQL parsing error messages are returned.