diff --git a/internal/core/thirdparty/tantivy/tantivy-binding/src/analyzer/tokenizers/lang_ident_tokenizer.rs b/internal/core/thirdparty/tantivy/tantivy-binding/src/analyzer/tokenizers/lang_ident_tokenizer.rs index 8a6d241087..af1c8e9478 100644 --- a/internal/core/thirdparty/tantivy/tantivy-binding/src/analyzer/tokenizers/lang_ident_tokenizer.rs +++ b/internal/core/thirdparty/tantivy/tantivy-binding/src/analyzer/tokenizers/lang_ident_tokenizer.rs @@ -36,7 +36,7 @@ impl Identifier for WhatlangIdentifier { detect(text) .map_or("default", |info| { if info.confidence() > self.confidence { - info.lang().code() + info.lang().eng_name() } else { "default" }