[][src]Function ironcore_search_helpers::generate_hashes_for_string

pub fn generate_hashes_for_string(
    s: &str,
    partition_id: Option<&str>,
    salt: &[u8]
) -> Result<HashSet<u32>, String>

Make an index, for the string s considering all tri-grams. The string will be latinised, lowercased and stripped of special chars before being broken into tri-grams. The values will be prefixed with partition_id and salt before being hashed. Each entry in the HasheSet will be truncated to 32 bits and will be encoded as a big endian number. If the string is longer than 200 characters, this will return an error.