Skip to main content

relevant_candidates_up_to

Function relevant_candidates_up_to 

Source
pub fn relevant_candidates_up_to(
    candidates: Vec<SemanticCandidate>,
    cap: usize,
) -> Vec<SemanticCandidate>
Expand description

relevant_text_search_candidates with a chosen cap. Searches within a filtered set keep more: every match there is already one of the user’s people or dates. The absolute floor still applies, so a set with nothing like the query returns nothing rather than its least-bad photos.