Skip to main content

index_file_row

Function index_file_row 

Source
pub async fn index_file_row(
    app: &App,
    tn_id: TnId,
    file: &FileView,
) -> ClResult<()>
Expand description

Index a file already in hand — what the sweep uses, so paging a tenant’s files does not re-read every one of them.

A file that does not qualify is written as part = None, which deletes its 'F' row and the deep 'D' rows crate::indexer built for it — see replace_search_row’s contract. So trashing a document takes its pages out of the index in the same call.