Skip to main content

list_scratch

Function list_scratch 

Source
pub fn list_scratch(
    fs: &impl Fs,
    paths: &StorePaths,
    doc_id: &str,
) -> Result<Vec<CandidateEntry>, SessionError>
Expand description

List candidate entries for doc_id, one per distinct candidate id.

Reads all appended records and deduplicates by id: for each distinct id, the last record in file order is kept (last-write-wins). Entries are returned in first-appearance order (the order each id was first seen).

Returns an empty vec when no scratch index exists for the document.