mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-29 06:20:28 +08:00
inbox/list: Fuzzy search on additional fields
This commit is contained in:
@@ -503,8 +503,21 @@ pub mod filter {
|
||||
refname.clone().unwrap_or_default()
|
||||
}
|
||||
};
|
||||
match matcher.fuzzy_match(&summary, search) {
|
||||
Some(score) => score == 0 || score > 60,
|
||||
match matcher.fuzzy_match(
|
||||
&format!(
|
||||
"{} {} {}",
|
||||
summary,
|
||||
notif.kind,
|
||||
¬if
|
||||
.author
|
||||
.alias
|
||||
.as_ref()
|
||||
.map(|a| a.to_string())
|
||||
.unwrap_or_default()
|
||||
),
|
||||
search,
|
||||
) {
|
||||
Some(score) => score == 0 || score > filter::FUZZY_MIN_SCORE,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user