drupflare/worker - v1.0.4
    Preparing search index...

    Function orderCandidates

    • Orders candidates by what a partial sweep should have covered: views, then recency, then depth. Views come from the in-memory map on the fast serve lane (zero rows); losing it leaves recency.

      Parameters

      • candidates: readonly SweepCandidate[]
      • hits: ReadonlyMap<string, number> | undefined

      Returns SweepCandidate[]