sd_search_documents
Search for documents in Schleiermacher Digital by text, document type, and date. Filter results to locate letters, diaries, lectures, and other scholarly materials.
Instructions
Search documents in Schleiermacher Digital via eXist-db with facets.
PURPOSE: Primary search tool for finding documents by text, type, year, etc.
WHEN TO USE:
Full-text search in documents
Filter by document type (letter, diary, lecture, etc.)
Filter by year or date range
Any search query for document discovery
WHEN NOT TO USE:
For structured letter filtering by sender/receiver → use filter_letters()
For register search (persons, places) → use search_register()
For detailed text passages → use get_document_passages()
⚠️ CITATION WARNING: Only cite documents returned by this tool. Each result includes:
document_id: Use this EXACT value for citations
citation_url: Use this EXACT URL, do not construct your own NEVER invent document IDs or URLs that were not returned in the results.
Valid doc_types (from index):
"letter" or "letter fs" (8071 documents)
"lecture" or "lecture fs" (143 documents)
"chronology" (61 documents)
"intro" (42 documents)
"chronology-intro" (29 documents)
"diary" or "diary fs" (21 documents)
Args: query: Search terms (space-separated for multiple terms) doc_types: Filter by document types (letter, letter fs, diary, diary fs, lecture, lecture fs, chronology, intro) years: Filter by years (e.g., ["1810", "1811"]) date_from: Earliest date (ISO 8601, e.g., "1810-01-01") date_to: Latest date (ISO 8601, e.g., "1815-12-31") include_commentary: If True, search in commentary too (default: True) use_or_logic: If True, use OR between terms (default); if False, use AND limit: Maximum results (default: 50) ctx: FastMCP Context
Returns: List of SearchResult objects with document_id, title, type, date, kwic_snippets, and citation_url
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | ||
| query | Yes | ||
| years | No | ||
| date_to | No | ||
| date_from | No | ||
| doc_types | No | ||
| use_or_logic | Yes | ||
| include_commentary | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |