Add pinyin flag

This commit is contained in:
ManyTheFish 2024-08-21 13:22:56 +02:00
parent 8bf89ec394
commit b12e997c8a
3 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ mod facet_search;
mod formatted; mod formatted;
mod geo; mod geo;
mod hybrid; mod hybrid;
#[cfg(not(feature = "chinese-pinyin"))]
mod locales; mod locales;
mod matching_strategy; mod matching_strategy;
mod multi; mod multi;
@ -392,6 +393,7 @@ async fn negative_special_cases_search() {
} }
#[cfg(feature = "default")] #[cfg(feature = "default")]
#[cfg(not(feature = "chinese-pinyin"))]
#[actix_rt::test] #[actix_rt::test]
async fn test_kanji_language_detection() { async fn test_kanji_language_detection() {
let server = Server::new().await; let server = Server::new().await;

View File

@ -360,6 +360,7 @@ mod test {
use super::*; use super::*;
#[cfg(feature = "japanese")] #[cfg(feature = "japanese")]
#[cfg(not(feature = "chinese-pinyin"))]
#[test] #[test]
fn test_kanji_language_detection() { fn test_kanji_language_detection() {
use crate::index::tests::TempIndex; use crate::index::tests::TempIndex;

View File

@ -6,6 +6,7 @@ pub mod exactness;
pub mod geo_sort; pub mod geo_sort;
pub mod integration; pub mod integration;
#[cfg(feature = "all-tokenizations")] #[cfg(feature = "all-tokenizations")]
#[cfg(not(feature = "chinese-pinyin"))]
pub mod language; pub mod language;
pub mod ngram_split_words; pub mod ngram_split_words;
pub mod proximity; pub mod proximity;