メインコンテンツまでスキップ

Read passages by ID.

GET/api/v1/passagesdocuments:search
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Needs View Search Fragments and View Document Text. The text, page and document of the passages named by passage_id (repeat it for several), in the order asked: the clustering app's fragment drilldown. A passage that does not exist, or whose document the caller cannot read, is left out. passage_id is required.

スコープdocuments:search
非同期いいえ
MCP ツールlist_passages
Portal の権限view_search_fragments, view_document_text
ページングsnapshot
既定の並び順position
並べ替えに使えるフィールドposition
フィルターpassage_id

パラメーター​

名前場所型必須説明
limitqueryinteger任意既定値: 50; ≥ 1
cursorquerystring任意
sortquerystring任意Comma-separated sort fields, - for descending.
passage_idquerystring の配列任意
Docwize-Versionheaderstring (date)任意
If-None-Matchheaderstring任意Answers 304 when the representation is unchanged (resources that publish an ETag).

応答​

ステータス説明本文
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 の本文​

フィールド型必須説明
itemsPassage の配列必須
next_cursorstring または null必須
warningsobject の配列必須

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

Passage​

フィールド型必須説明
distancenumber または null必須How far the chunk's meaning is from the query's: smaller is nearer. Set by a meaning search.
document_idstring必須
end_offsetinteger または null必須Where the chunk ends in the document's text; null for an exact search, and in get_passage and list_passages.
highlightsPassageHighlight の配列必須Snippets with the matched words marked; read with include highlights.
pageinteger または null必須The page of the document the chunk starts on (0 when the document has no pages); read with include text, get_passage and list_passages.
passage_idstring または null必須Names the chunk for get_passage and list_passages; null for an exact search, which finds whole document texts.
scorenumber または null必須How well the text matches the query's words: larger is better. Set by an exact search.
start_offsetinteger または null必須Where the chunk starts in the document's text; null for an exact search, and in get_passage and list_passages.
textstring または null必須The chunk's text; read with include text, get_passage and list_passages.

PassageHighlight​

フィールド型必須説明
htmlstring必須The snippet, with the matched words in <span class="keyword">.