视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
archive-search【文档与办公】How to query the Riksarkivet search tools — load BEFORE calling search_transcribed or search_metadata. Picks the right tool and builds queries with the fuzzy, wildcard, and old-Swedish-spelling tactics that AI transcription errors demand. Use when the user wants to search, find, or look up documents, people, places, or events in the Swedish National …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Search strategy, syntax, and best practices for the Riksarkivet search tools
(search_transcribed and search_metadata).
| Research goal | Tool | Key params |
|---|---|---|
| Find text mentions in court records | search_transcribed | keyword |
| Find a person by name | search_metadata | name="Svensson" |
| Find documents from a place | search_metadata | place="Norrköping" |
| Find documents by title/type | search_metadata | keyword="bouppteckning" |
| Church records, estate inventories | search_metadata | keyword + place (not AI-transcribed) |
| Read full page content | browse_document | reference_code, pages |
The search API is a plain free-text engine, NOT a full Solr/Lucene endpoint. Every syntax claim below is verified against the live API.
| Syntax | Example | Meaning |
|---|---|---|
| Single term | Stockholm | Find the word |
| Several terms | pest smitta | ALL terms required in the same document (implicit AND) |
| Wildcard | troll*, st?ckholm, *holm | * = many chars, ? = one char |
| Fuzzy | Stockholm~1 | Similar words (edit distance) |
NOT supported — never use:
AND / OR / NOT / | / parentheses. There is no boolean parser. The
words AND/OR/NOT are searched as literal text: and alone matches 1.6M
volumes, so pest AND smitta returns ~1.64M junk hits instead of the
33-document conjunction pest smitta. The server rejects such queries.troll*, then häx*, and merge what you learn.search_transcribed; use plain multi-term search
(kyrka stöld = both words anywhere in the volume). In search_metadata,
quotes work only for reference codes: "SE/RA/720660" lists an archive's
volumes, but quoted title phrases return 0."a b"~10. Not honored — returns 0 like any quoted phrase.term^4). Unverified; adds nothing. Leave it out.All searchable text is AI-generated using HTR (Handwritten Text Recognition) and OCR models. These transcriptions contain recognition errors: misread characters, merged or split words, and garbled passages — especially in older, damaged, or poorly legible documents.
Always use fuzzy search (~) by default to compensate for transcription errors:
stockholm~1 finds "Stockholm", "Stockholn", "Stookholm" (common HTR misreads)trolldom~1 finds "trolldom", "trolldoin", "trolldorn"präst~1 finds "präst", "prast", "prest"Without fuzzy search, you will miss many relevant results because the transcription of the exact word you're looking for may contain errors.
Rule of thumb: Use ~1 (edit distance 1) for short words, ~2 for longer words or
very old/damaged documents. For stem variants use a wildcard instead: troll*.
search_transcribed(keyword, offset=0) for initial hitssearch_metadata to find documents by title, person, or placepest smitta
returns only documents containing bothbrowse_document to examine interesting matches in fullCommon spelling pairs to search for — always try both modern and archaic forms (as separate searches, or covered by one wildcard/fuzzy term):
| Modern | Archaic / Variant | Covered by |
|---|---|---|
| präst | prest | pr?st or präst~1 |
| silver | silfver, silfv | sil*er or silf* |
| guld | gull | gul* |
| kyrka | kyrcka, kyrck | kyrk* or kyrck* |
| kvinna | qvinna, qwinna | q*inna or kvinna~1 |
| stöld | tiufnad, tjufnad | separate searches |
| häxa | hexa | h?xa |
| trolldom | trulldom | tr?lldom |
| djävul | djäfvul, diefvul | dj?f* + separate searches |
General letter drift: ä↔æ/e, ö↔ø/o, v↔f/fv/w, k↔ck/c — ? and ~1 absorb most of it.
troll* finds "trolldom", "trolleri", "trollkona"Stockholm~1 catches HTR/OCR misreadskyrka stöld silver = volumes containing all threeyear_min/year_max to narrow time periodssort="timeAsc" for earliest mentions, sort="timeDesc" for most recentname and place parameters in search_metadata
for targeted person/place searches instead of putting everything in keyword