Skip to content

Commit 5b8f033

Browse files
committed
chore: commented-out currently unused substitute methods for now
1 parent 03f3571 commit 5b8f033

File tree

6 files changed

+20
-9
lines changed

6 files changed

+20
-9
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
* Release notes are available on
44
[GitHub](https://github.com/leontoeides/indicium/releases).
55

6+
# 0.6.5
7+
8+
* 2025-02-09: Substantial internal refactor. String similarity crates are now
9+
interfaced through a `Fuzzy` trait.
10+
11+
* 2025-02-09: Reduced the number of memory allocations needed to perform a
12+
search, resulting in a small performance improvement.
13+
14+
* 2025-01-12: Applied some `clippy` suggestions and did some house-keeping for
15+
the `select2` feature.
16+
617
# 0.6.4
718

819
* 2025-01-12: New, default feature for fuzzy matching: `rapidfuzz`. When this

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ default = ["simple"]
1919
simple = ["rapidfuzz", "rustc-hash"]
2020
select2 = ["simple", "dep:serde"]
2121

22-
fuzzy = ["dep:strsim"]
22+
fuzzy = ["rapidfuzz"]
2323
strsim = ["dep:strsim"]
2424
eddie = ["dep:eddie"] # Quite fast but not stable. Not recommended
2525
rapidfuzz = ["dep:rapidfuzz"]

src/simple/internal/fuzzers/eddie/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ pub mod global_metric;
2020
pub mod context;
2121
pub mod context_metric;
2222

23-
pub mod substitute;
24-
pub mod substitute_metric;
23+
// pub mod substitute;
24+
// pub mod substitute_metric;
2525

2626
// -----------------------------------------------------------------------------
2727
//

src/simple/internal/fuzzers/rapidfuzz/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ pub mod global_comparator;
2020
pub mod context;
2121
pub mod context_comparator;
2222

23-
pub mod substitute;
24-
pub mod substitute_comparator;
23+
// pub mod substitute;
24+
// pub mod substitute_comparator;
2525

2626
// -----------------------------------------------------------------------------
2727
//

src/simple/internal/fuzzers/strsim/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ pub mod global_metric;
2020
pub mod context;
2121
pub mod context_metric;
2222

23-
pub mod substitute;
24-
pub mod substitute_metric;
23+
// pub mod substitute;
24+
// pub mod substitute_metric;
2525

2626
// -----------------------------------------------------------------------------
2727
//

src/simple/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ fn simple() {
199199
assert_eq!(autocomplete_options, vec!["1087".to_string()]);
200200

201201
// Test internal global fuzzy keyword search interface:
202-
#[cfg(feature = "eddie")]
202+
/* #[cfg(feature = "eddie")]
203203
let similar_keyword = search_index.eddie_substitute(&"Willy".to_lowercase());
204204
#[cfg(feature = "rapidfuzz")]
205205
let similar_keyword = search_index.rapidfuzz_substitute(&"Willy".to_lowercase());
206206
#[cfg(feature = "strsim")]
207207
let similar_keyword = search_index.strsim_substitute(&"Willy".to_lowercase());
208208
#[cfg(any(feature = "eddie", feature = "rapidfuzz", feature = "strsim"))]
209-
assert_eq!(similar_keyword, Some("william"));
209+
assert_eq!(similar_keyword, Some("william")); */
210210

211211
// Test internal global fuzzy autocompletion interface:
212212
#[cfg(feature = "eddie")]

0 commit comments

Comments
 (0)