feat: Integrate tantivy as an inverted index substitute (#4733)

This commit is contained in:
udev
2024-11-12 13:47:33 +08:00
committed by GitHub
parent 736fc1c768
commit ec23784edc
61 changed files with 2182 additions and 1913 deletions
+2 -9
View File
@@ -220,10 +220,6 @@ pub async fn cli() -> Result<bool, anyhow::Error> {
}
}
"migrate-file-list" => {
let prefix = match command.get_one::<String>("prefix") {
Some(prefix) => prefix.to_string(),
None => "".to_string(),
};
let from = match command.get_one::<String>("from") {
Some(from) => from.to_string(),
None => "".to_string(),
@@ -232,11 +228,8 @@ pub async fn cli() -> Result<bool, anyhow::Error> {
Some(to) => to.to_string(),
None => "".to_string(),
};
println!(
"Running migration file_list from {} to {}, with prefix: {}",
from, to, prefix
);
migration::file_list::run(&prefix, &from, &to).await?;
println!("Running migration file_list from {} to {}", from, to);
migration::file_list::run(&from, &to).await?;
}
"migrate-meta" => {
let from = match command.get_one::<String>("from") {