Skip to content

Commit

Permalink
Merge pull request #23 from tmpfs/update-deps
Browse files Browse the repository at this point in the history
Update hashbrown dependency
  • Loading branch information
marcus-pousette committed Feb 8, 2024
2 parents 8d215e4 + c6a2257 commit 6d891c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "probly-search"
description = "A lightweight full-text search engine with a fully customizable scoring function"
version = "2.0.0-alpha-2"
version = "2.0.0"
authors = ["marcus-pousette <marcus.pousette@quantleaf.com>"]
edition = "2021"
license = "MIT"
Expand All @@ -15,7 +15,7 @@ exclude = [".github/**", ".gitignore", ".rustfmt.toml"]

[dependencies]
typed-generational-arena = "0.2"
hashbrown = "0.12.3"
hashbrown = "0.14"

[dev-dependencies]
lazy_static = "1.4.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.rs
Expand Up @@ -91,7 +91,7 @@ impl<T: Eq + Hash + Copy + Debug> Index<T> {
for i in 0..fields.len() {
let field_values = field_accessors[i](doc);
let fields_len = fields.len();
let mut field_details = fields.get_mut(i).unwrap();
let field_details = fields.get_mut(i).unwrap();
for field_value in field_values {
// tokenize text
let terms = tokenizer(field_value);
Expand Down
4 changes: 2 additions & 2 deletions src/query.rs
Expand Up @@ -18,9 +18,9 @@ impl<T: Eq + Hash + Copy + Debug> Index<T> {
/// Performs a search with a simple free text query.
///
/// All token separators work as a disjunction operator.
pub fn query<'a, M, S: ScoreCalculator<T, M>>(
pub fn query<M, S: ScoreCalculator<T, M>>(
&self,
query: &'a str,
query: &str,
score_calculator: &mut S,
tokenizer: Tokenizer,
fields_boost: &[f64],
Expand Down

0 comments on commit 6d891c4

Please sign in to comment.