Read the cached result of a saved search.
GET/api/v1/saved-searches/{saved_search_id}/hitsdocuments:search
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Needs View Saved Document Search Results and View Document Metadata. The documents the saved search matched when it last ran, in the order it found them, each read again through the caller's live access: a document the caller can no longer read is left out, and the score is the one of the run. Highlights are not kept. 409 conflict while the saved search is pending or failed.
| スコープ | documents:search |
| 非同期 | いいえ |
| MCP ツール | list_saved_search_hits |
| Portal の権限 | view_saved_document_search_results, view_document_metadata |
| 会社に必要な機能 | search |
| ページング | snapshot |
| 既定の並び順 | position |
| 並べ替えに使えるフィールド | position |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
saved_search_id | path | string | 必須 | |
limit | query | integer | 任意 | 既定値: 50; ≥ 1 |
cursor | query | string | 任意 | |
sort | query | string | 任意 | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, unsupported_for_tenant, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 の本文
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | DocumentSearchHit の配列 | 必須 | |
next_cursor | string または null | 必須 | |
warnings | object の配列 | 必須 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
AdditionalField
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
label | string または null | 必須 | |
value | string または null | 必須 |
AdditionalFields
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
additional_field_3 | AdditionalField | 必須 | |
additional_field_4 | AdditionalField | 必須 | |
additional_field_5 | AdditionalField | 必須 | |
additional_field_6 | AdditionalField | 必須 |
CarbonCopy
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cc_id | string | 必須 | |
contact | object または null | 必須 | The contact of the organisation the copy names; null for the organisation on its own. |
organisation | object または null | 必須 |
DocumentFile
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
content_type | string または null | 必須 | |
file_hash | string または null | 必須 | The hash the Portal stored for the file's content; null when none was recorded. |
file_name | string | 必須 | |
has_pdf | boolean | 必須 | Whether a PDF rendition of the file is ready (an Office file converts on demand, so false only means not yet). |
is_indexed | boolean | 必須 | Whether the file's text has been indexed for search. |
page_count | integer または null | 必須 | The pages the file has, once the Portal has counted them; null before. |
size_bytes | string または null | 必須 | |
version_id | string | 必須 |
DocumentFolder
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
folder_id | string | 必須 | |
path | string または null | 必須 |
DocumentSearchHit
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
actual_submission_date | string または null | 必須 | |
additional_fields | AdditionalFields | 必須 | |
attachment_state | string または null | 必須 | none, has_attachments or is_attachment (the document is an attachment of another); null unless include names attachment_state. |
carbon_copies | CarbonCopy の配列 | 必須 | The organisations and contacts the document is copied to; empty unless include names carbon_copies. |
created_at | string (date-time) または null | 必須 | |
created_by | UserRef または null | 必須 | |
description | string または null | 必須 | |
document_date | string または null | 必須 | |
document_id | string | 必須 | |
document_number | string または null | 必須 | |
document_status | object または null | 必須 | The status shown as Status in the Portal (lookup_actionstatus). |
document_sub_type | object または null | 必須 | |
document_type | object または null | 必須 | |
duplicate_of | string または null | 必須 | The number of the document this one duplicates (the Portal's Duplicate Of). |
file | DocumentFile または null | 必須 | The current file (name, type, size), as GET /documents/{document_id} shows it; null when the document has none or include leaves file out. |
folders | DocumentFolder の配列 | 必須 | The folders the document is filed in that the caller can see, as GET /documents/{document_id} lists them; empty unless include names folders. |
from_contact | object または null | 必須 | |
from_organisation | object または null | 必須 | |
highlights | SearchHighlight の配列 | 必須 | Passages that matched the query, with their pages; empty unless the search asked for highlight, and for the precise engine (filter, meaning). |
is_latest_revision | boolean | 必須 | |
is_locked | boolean | 必須 | |
is_privileged | boolean | 必須 | |
locations | SearchHitLocation の配列 | 必須 | The locations the document is filed in; empty unless include names locations. |
main_document_date | string または null | 必須 | |
owner | UserRef または null | 必須 | |
page_end | number または null | 必須 | Last page of the range this document covers in its file. |
page_start | number または null | 必須 | First page of the range this document covers in its file. |
post_review_status | object または null | 必須 | |
project | object または null | 必須 | The stored project number text, with the project's ID when one matches. |
project_organisation | object または null | 必須 | |
reference_number | string または null | 必須 | |
relevance | number または null | 必須 | 1 is relevant (the default), 0 is irrelevant (the Portal's Irrelevant switch). |
responded_with | string または null | 必須 | The reference of the document that responded to this one (the Portal's Responded With). |
response_date | string または null | 必須 | |
response_due_date | string または null | 必須 | |
revision_number | string または null | 必須 | |
score | number | 必須 | How well the document matches the query, higher first. 0 when the search has no query. |
tags | SearchHitTag の配列 | 必須 | The document's tags that are open to the caller; empty unless include names tags. |
to_contact | object または null | 必須 | |
to_organisation | object または null | 必須 |
SearchHighlight
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
field | string | 必須 | The field the passage comes from: content, document_number, description, reference_number, from, to, ccs, other_number or folders. |
html | string | 必須 | The passage with the matched words in <b>; everything else is HTML-escaped. |
page | integer または null | 必須 | The 1-based page of the document the passage is on; null when the text has no pages. |
SearchHitLocation
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
location_id | string | 必須 | |
path | string または null | 必須 |
SearchHitTag
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
name | string | 必須 | |
tag_id | string | 必須 |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |