pub fn deserialize_document_fields(
data: &[u8],
schema: &Schema,
field_ids: &[u32],
) -> Result<Document>Expand description
Deserialize only specific fields from document bytes.
Skips over unwanted fields without allocating their values — just advances the reader past their length-prefixed data. For large documents with many fields (e.g., full text body), this avoids allocating/copying data that the caller doesn’t need.