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 you have the ability to choose a number of languages that it should support. Searching in one of these languages using the Client class and the Search extension method is straight forward. Simply pass the Search extension method an instance of the Language class.


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

    .InField(x => x.Title);

Note that the language parameter only makes a difference when specifying one or multiple fields to search in. When searching without specifying any field the search is made over the special _all field which only supports a single analyzer. Likewise, when searching in 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.

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

Last updated: Jun 10, 2014

Recommended reading