pub struct HalDoc {
pub docid: String,
pub label_s: Option<String>,
pub uri_s: Option<String>,
pub title_s: Option<Vec<String>>,
pub auth_full_name_s: Option<Vec<String>>,
pub produced_date_s: Option<String>,
pub doc_type_s: Option<String>,
pub extra: Map<String, Value>,
}Expand description
A single document returned by a HAL search.
HAL is a Solr index with a very large, evolving schema. Only the most common
fields are typed here; any other field requested through
SearchQuery::fields is preserved in HalDoc::extra.
Fields§
§docid: StringThe HAL internal document identifier.
HAL returns this either as a number or as a string depending on the
endpoint and version; it is always normalised to a String here.
label_s: Option<String>A ready-to-display citation-style label (default field of a basic search).
uri_s: Option<String>The canonical URI of the document on HAL (e.g. https://hal.science/…).
title_s: Option<Vec<String>>The document title(s). Requested with fl=title_s.
auth_full_name_s: Option<Vec<String>>The full names of the authors. Requested with fl=authFullName_s.
produced_date_s: Option<String>The production date, as a string (e.g. 2026-06-04). Requested with fl=producedDate_s.
doc_type_s: Option<String>The document type (e.g. ART, COMM, THESE). Requested with fl=docType_s.
extra: Map<String, Value>Any other field returned by HAL but not modelled above.