Documentation Index
Fetch the complete documentation index at: https://mintlify.com/exegia/corpora-py/llms.txt
Use this file to discover all available pages before exploring further.
search_csv() runs a Context-Fabric query template and writes the full result set — every matched node from every result tuple — to a CSV file on the filesystem where the server process is running. Each row represents one node from one result tuple and includes its result index, slot index within that tuple, numeric node ID, section reference, and one column per requested feature. This is the right tool when you want to post-process or visualise results outside the MCP session.
Parameters
The query template string, using the same syntax as
search(). See search_syntax_guide() for details.Absolute path for the output
.csv file on the server’s filesystem (e.g. "/home/user/results.csv"). The file is created or overwritten. The path is expanded for ~.List of feature names to include as columns in the CSV. Defaults to
["otype", "lex", "pos", "gloss"] when omitted. Use list_features() to discover valid names for your corpus.Corpus name. When omitted, the currently active corpus is used.
Returns
A confirmation string reporting how many results and total node rows were exported, and the resolved output path:"No results found." when the template matches nothing. Returns "Search error: <message>" if the template is invalid.
CSV schema
| Column | Type | Description |
|---|---|---|
result_index | integer | Zero-based index of the matched result tuple |
slot_index | integer | Zero-based position of this node within the tuple |
node | integer | Numeric node ID |
section | string | Human-readable section reference (e.g. "Genesis 1 1") |
| (features) | string | One column per name in features, value from that feature for this node |