Skip to content

Commit 068c885

Browse files
dependabot[bot]mergify[bot]neon-mmd
authored
⬆️ build(deps): bump stop-words from 0.8.1 to 0.9.0 (#738)
* build(deps): bump stop-words from 0.8.1 to 0.9.0 Bumps [stop-words](https://github.com/cmccomb/stop-words) from 0.8.1 to 0.9.0. - [Release notes](https://github.com/cmccomb/stop-words/releases) - [Commits](cmccomb/rust-stop-words@v0.8.1...v0.9.0) --- updated-dependencies: - dependency-name: stop-words dependency-version: 0.9.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * 🐛 fix(ranking): fix errors introduced in accordance with the upstream `api` update (#738) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: neon_arch <mustafadhuleb53@gmail.com>
1 parent 06a09f2 commit 068c885

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ keyword_extraction = { version = "1.5.0", default-features = false, features = [
7979
"tf_idf",
8080
"rayon",
8181
] }
82-
stop-words = { version = "0.8.0", default-features = false, features = ["iso"] }
82+
stop-words = { version = "0.9.0", default-features = false, features = ["iso"] }
8383
thesaurus = { version = "0.5.2", default-features = false, optional = true, features = [
8484
"moby",
8585
]}

src/models/aggregation.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ impl SearchResult {
6363
self.description.clone(),
6464
];
6565

66-
let stop_words = get(LANGUAGE::English);
66+
let stop_words: Box<[String]> = get(LANGUAGE::English)
67+
.par_iter()
68+
.map(|stop_word| stop_word.to_string())
69+
.collect();
70+
6771
let punctuation = [
6872
".".to_owned(),
6973
",".to_owned(),

0 commit comments

Comments
 (0)