Try our conversational search powered by Generative AI!

Loading...
Area: Optimizely Search & Navigation
ARCHIVED This content is retired and no longer maintained. See the latest version here.

Recommended reading 

When an index is set up with Episerver Find, you can define the number of languages that it supports. This topic describes how to create queries that apply to specific languages.

How it works

When you search in one of the defined languages, you use the Client class and the Search extension method. Pass to the Search extension method an instance of the Language class.

Example

An instance for each supported language is exposed as a static property on the Language class.

C#
client.Search<BlogPost>(Language.Swedish)
    .For("turtles")
    .InField(x => x.Title);

Note: The language parameter only makes a difference when specifying one or more fields in which to search. If you do not specify fields, the search is made over the special _all field, which only supports a single analyzer. Likewise, when searching attachments (Word documents, PDFs, etc.), the standard analyzer is used.

Searching in a specific language means that the search is performed using stemming adapted for that language.

Supported languages

See Architecture for a complete list of supported languages in Episerver Find.

Do you find this information helpful? Please log in to provide feedback.

Last updated: Nov 16, 2015

Recommended reading