Open topic with navigation

# Specify the Language Type of a Query

When you send a query to HPE IDOL Server, by default it reads the query language type as the `DefaultLanguageType` defined in the HPE IDOL Server configuration file.

You must correctly set the language type of any query text so that HPE IDOL Server can handle the query text correctly (for example, stemming correctly). If you want to send a query that does not use the default language type, you must add the `LanguageType` parameter to your query action. This parameter specifies that the query uses the language and encoding set in the HPE IDOL Server configuration file for the specified `LanguageType`.

For example:

The following query uses the language and encoding specified for the `DefaultLanguageType`, so you can send it to HPE IDOL Server without adding the `LanguageType` parameter:

    http://12.3.4.56:4000/action=Query&Text=The Bayes theory of probability

The following query uses the language and encoding specified for the `German` language type:

    http://12.3.4.56:4000/action=Query&Text=Einsteins Relativitätstheorie&LanguageType=German

Related Topics

- Define a Default Language Type

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm