Files
cjdic2/src-core/examples/search_yomitan.rs
T

19 lines
401 B
Rust

use anyhow::Ok;
use cjdic2_core::{AppService, Timer};
mod common;
use common::get_db_dir;
fn main() -> Result<(), anyhow::Error> {
let service = AppService::new(get_db_dir())?;
{
let _timer = Timer::new("Search".to_string());
let rs = service.search_yomitan("擦る", "する", 10, 0)?;
println!("{:#?}", rs);
println!("n={}", rs.len());
}
Ok(())
}