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.