Filter flattenedDocs to documents whose datum matches date (slice 0..10) or whose dok_id matches one of requestedIdSet. When the result is empty AND no --doc-id filter was supplied, perform up to MAX_LOOKBACK_BUSINESS_DAYS business-day lookback steps for the first non-empty match.
Filter
flattenedDocsto documents whosedatummatchesdate(slice0..10) or whosedok_idmatches one ofrequestedIdSet. When the result is empty AND no--doc-idfilter was supplied, perform up toMAX_LOOKBACK_BUSINESS_DAYSbusiness-day lookback steps for the first non-empty match.