///|
fn main {
let config : @roman.ScanConfig = {
parse_config: @roman.compatibility_parse_config(),
retain_rejected: true,
include_single_symbol: false,
max_candidate_length: 32,
}
let documents : Array[@roman.RomanDocument] = [
{ id: "guide", text: "Sections XIV and XX.", config },
{ id: "notes", text: "Values \u{2163} and IX.", config },
]
let index = @roman.build_roman_document_index(documents).unwrap()
let page = @roman.query_roman_index_page(index, {
..@roman.default_roman_index_query(),
min_value: Some(9),
max_value: Some(20),
limit: Some(10),
}).unwrap()
let summary = @roman.summarize_roman_document_index(index)
println(page.total_matches)
println(summary.document_count)
println(summary.distinct_values)
}