Skip to main content

exact_terms_match

Function exact_terms_match 

Source
pub fn exact_terms_match(query: &str, candidate: &str) -> bool
Expand description

Returns true when every whitespace-separated term in query appears as a case-insensitive substring within candidate. Both query and candidate are expected to be pre-lowered (via normalize_query and construction-time lowering respectively), so this function performs zero allocations.