Analyzers

To specify how the search engine handles words/phrases you use analyzers.

We recommend the following analyzers:

  • KeywordAnalyzer: Splits words and phrases based on keywords.
  • WhitespaceAnalyzer: Splits words and phrases based on whitespace.
  • StandardAnalyzer: Splits words and phrases based on whitespace, hyphen, comma, full stop, recognizes e-mail addresses and domain names etc.

The standard analyzer is used by default in Litium if no other analyzer is specified. The analyzer can be specified with or without "analyzer" in the name.

In Litium the specification is set in the tag.

var term = "min söksträng";
request.FilterTags.Add(new Tag(FieldNames.Body, term) { Analyzer = "whitespace" });
Was this page helpful?
Thank you for your feedback!