Skip to content

Commit

Permalink
feature: show corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
densumesh committed Aug 16, 2024
1 parent 866ba71 commit ec2a434
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/operators/words_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ fn correct_query_helper(tree: &BkTree, query: String, options: &TypoOptions) ->

let mut corrected_query = query.clone();

dbg!(&query_split_to_correction);

if !query_split_to_correction.is_empty() {
for (og_string, correction) in query_split_to_correction {
corrected_query = corrected_query.replacen(&og_string, &correction, 1);
Expand Down

0 comments on commit ec2a434

Please sign in to comment.