pub enum Language {
Show 30 variants
Arabic,
Azerbaijani,
Basque,
Bengali,
Catalan,
Chinese,
Danish,
Dutch,
English,
Finnish,
French,
German,
Greek,
Hebrew,
Hinglish,
Hungarian,
Indonesian,
Italian,
Japanese,
Kazakh,
Nepali,
Norwegian,
Portuguese,
Romanian,
Russian,
Slovene,
Spanish,
Swedish,
Tajik,
Turkish,
}Expand description
Text-processing language for BM25 tokenization. One variant per Qdrant
Language; serializations match Qdrant’s snake_case names.
Variants§
Arabic
Arabic ("ar"). Snowball stemming + stopwords.
Azerbaijani
Azerbaijani ("az"). No default stemmer; stopwords only.
Basque
Basque ("eu"). No default stemmer; stopwords only.
Bengali
Bengali ("bn"). No default stemmer; stopwords only.
Catalan
Catalan ("ca"). No default stemmer; stopwords only.
Chinese
Chinese ("zh"). No default stemmer; stopwords only.
Danish
Danish ("da"). Snowball stemming + stopwords.
Dutch
Dutch ("nl"). Snowball stemming + stopwords.
English
English ("en"). Snowball stemming + stopwords.
Finnish
Finnish ("fi"). Snowball stemming + stopwords.
French
French ("fr"). Snowball stemming + stopwords.
German
German ("de"). Snowball stemming + stopwords.
Greek
Greek ("el"). Snowball stemming + stopwords.
Hebrew
Hebrew ("he"). No default stemmer; stopwords only.
Hinglish
Hinglish ("hi-en"). No default stemmer; stopwords only.
Hungarian
Hungarian ("hu"). Snowball stemming + stopwords.
Indonesian
Indonesian ("id"). No default stemmer; stopwords only.
Italian
Italian ("it"). Snowball stemming + stopwords.
Japanese
Japanese ("jp"). No default stemmer; stopwords only.
Kazakh
Kazakh ("kk"). No default stemmer; stopwords only.
Nepali
Nepali ("ne"). No default stemmer; stopwords only.
Norwegian
Norwegian ("no"). Snowball stemming + stopwords.
Portuguese
Portuguese ("pt"). Snowball stemming + stopwords.
Romanian
Romanian ("ro"). Snowball stemming + stopwords.
Russian
Russian ("ru"). Snowball stemming + stopwords.
Slovene
Slovene ("sl"). No default stemmer; stopwords only.
Spanish
Spanish ("es"). Snowball stemming + stopwords.
Swedish
Swedish ("sv"). Snowball stemming + stopwords.
Tajik
Tajik ("tg"). No default stemmer; stopwords only.
Turkish
Turkish ("tr"). Snowball stemming + stopwords.
Implementations§
Source§impl Language
impl Language
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Canonical Qdrant spelling (snake_case, as Qdrant serializes it).
Sourcepub fn parse(name: &str) -> Result<Self, QqlError>
pub fn parse(name: &str) -> Result<Self, QqlError>
Parse a language name or Qdrant two-letter alias ("es", "zh",
"hi-en", …), ASCII-case-insensitively. The case-folding is a
deliberate superset of Qdrant’s case-sensitive serde (same accepted
set, friendlier spelling). Anything else fails closed.
Sourcepub fn stem_algorithm(self) -> Option<Algorithm>
pub fn stem_algorithm(self) -> Option<Algorithm>
Snowball stemmer for this language, if Qdrant defines one.
Mirrors Qdrant’s Stemmer::try_default_from_language: exactly the 17
Snowball languages reachable via language stem (Armenian and Tamil
exist in Qdrant’s SnowballLanguage but have no Language variant,
so they are explicit-stemmer-only — see Stemmer).
The rest (Chinese, Japanese, Hebrew, …) have no default stemmer and
pass tokens through unstemmed. qdrant-rust-stemmers is the same
crate family Qdrant uses, so the stems are identical.