Module elasticlunr::lang

source ·
Expand description

Intended to be compatible with https://github.com/MihaiValentin/lunr-languages. Each supported language has a trimmer, a stop word filter, and a stemmer. Most users will not need to use these modules directly.

Modules

Structs

Traits

Functions

  • Returns the Language for the given two-character ISO 639-1 language code if the language is supported. Returns None if not supported.
  • Returns the Language for the given English language name if the language is supported. Returns None if not supported. The first letter must be capitalized.
  • Returns a list of all the Language implementations in the crate
  • Splits a text string into a vector of individual tokens.