jp_lit_search_fulltext
Search OCR full text and metadata from NDL digital collections to locate documents by keyword. Supports filtering by content only, metadata only, or both.
Instructions
read-only。NDL デジタルコレクション全資料を対象に OCR 全文テキストからキーワード検索する(公開範囲のみ)。searchfield=contentonly で本文のみ、metaonly でメタデータのみ、all で両方を検索。結果には pid が含まれ、特定資料内のページ特定は jp_lit_search_pages、ページ画像と OCR 座標確認は jp_lit_get_text_coordinates で行う
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | NDL デジタルコレクション公開範囲の OCR / メタデータから探す語。 | |
| searchfield | No | 検索対象。contentonly は本文 OCR、metaonly はメタデータ、all は両方。 | contentonly |
| size | No | 返す資料候補の最大件数。最大 100。 | |
| from | No | 検索結果の offset。0 始まり。 | |
| f_ndc | No | NDL デジタルコレクションの NDC filter。分かっている場合だけ指定する。 | |
| fc_is_classic | No | 古典籍フラグで絞る場合に指定する。 | |
| force_refresh | No | true の場合はローカル cache を使わず upstream API から再取得する。false の場合は保存済み cache を優先する。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes | ||
| searchfield | Yes | ||
| total | Yes | ||
| from | Yes | ||
| items | Yes | ||
| raw | Yes | ||
| cache | No |