pub async fn read_text(
pool: &PgPool,
actor: &Actor,
revision_id: Uuid,
filename: &str,
version: Option<i32>,
offset: i64,
limit: i64,
) -> AppResult<FileText>Expand description
Reads a page (offset, at most limit characters, capped at
MAX_TEXT_PAGE_CHARS) of the extracted text of a file of a revision
(version: default the current one). Hidden project groups answer like
a missing revision; nothing is read from the vault, only the text the
upload stored for the search.