Skip to main content

pick_by_name_capped

Function pick_by_name_capped 

Source
pub fn pick_by_name_capped(
    found: &[Rule],
    name: &str,
    total: u64,
) -> Result<String>
Expand description

Run pick_by_name on a candidate page with the server’s candidate total.

The KQL filter can return near matches on an analyzed field, so compare exactly here. If the page is truncated with no exact match, report the cap instead of claiming the name is absent.