Content Component 26.1
Content Component Help

# Return Documents in a Specific Language

When you send a query action to the Content component, by default it returns results that use the same language and encoding as the query text. This language type can be:

- the language and encoding specified in the LanguageType parameter sent with the query.

- the language type specified in the DefaultLanguageType configuration parameter if the query does not include a LanguageType parameter.

To return documents in one more specific languages for the query, you can set the MatchLanguage parameter to a list of the languages that you want to match. When you set this parameter, Content applies the stemming algorithm and stop word list that is appropriate for the query language type as usual (it does not translate the query). The results include only documents in the specified languages that match the stopped and stemmed terms in the original query (that is, the words in result documents must stem to the same root as the words in the query text).

For example:

    action=Query&Text=Birmingham&LanguageType=EnglishUTF8&MatchLanguage=Dutch+German

In this example Content stems the query term Birmingham according to the stemming rules for the `EnglishUTF8` language type. It returns any documents in Dutch or German that contain a term that has the same stem as the English stem of Birmingham.

NOTE: If you specify MatchLanguage, you cannot specify MatchLanguageType or MatchEncoding in your query.

To return documents that match the query terms, regardless of the document language, you can add the AnyLanguage parameter to your query. See Return Documents in Multiple Languages.

TIP: You can use the Languages tab in the Status page of the Knowledge Discovery Admin interface to search for all documents in a particular language. You can also modify that query in Knowledge Discovery Admin. For more information, refer to the Knowledge Discovery Admin User Guide.

Copyright 2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Content Component 26.1

Topic Title: Return Documents in a Specific Language