Skip to main content

Determining the Language of Webpages

AddSearch supports all languages by default. To improve language interpretation and search accuracy, especially on multilingual sites, set the language of each webpage explicitly. This helps AddSearch display search results matching the page's language.

How AddSearch Detects Page Language

AddSearch determines language using one of these methods:

1. Set the Language in the HTML Tag

Add a lang or xml:lang attribute to your HTML tag. For example, to specify Spanish:

<html lang="es">
<!-- or -->
<html xml:lang="es">

This is the preferred method.

2. Set the Language Using Meta Tags

Alternatively, include language meta tags in the <head> section of your HTML:

<meta name="dc.language" content="es" />
<!-- or -->
<meta http-equiv="content-language" content="es" />

These tags also indicate the language as Spanish.

Language Metadata for PDF Files

If your site includes PDF documents, ensure they contain embedded language metadata. This allows AddSearch to identify their language correctly.

Refer to Adobe's instructions on setting PDF language metadata for guidance.

Additional Resources