Skip to main content

apply_transform

Function apply_transform 

Source
pub(crate) fn apply_transform(
    headword: &str,
    needs_char_filter: bool,
    needs_lowercase: bool,
) -> String
Expand description

Applies case and character normalization to a headword.

Used at index time to normalize stored words and at query time to normalize the lookup term so both sides use identical transformations.