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

Save a search.

POST/api/v1/saved-searchesdocuments:search
注記

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

Needs Create Saved Document Searches and Execute Saved Document Searches; the saved search is shown with View Saved Document Searches, otherwise the answer is the write receipt. Saves a search under a name (up to 255 characters) and a description, and caches its result set in the background: the saved search is pending until list_saved_searches shows it completed. The search takes the members of POST /documents/search that its Search app engine reads.

スコープdocuments:search
非同期いいえ
MCP ツールcreate_saved_search
Portal の権限create_saved_document_searches, execute_saved_document_searches
会社に必要な機能search

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonSavedSearchCreateInput

応答​

ステータス説明本文
201Success.application/json SavedSearch または object
400invalid_version, malformed_jsonapplication/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
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, unsupported_for_tenant, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

SavedSearch​

フィールド型必須説明
cached_hit_countinteger必須The documents cached so far while the run is pending. ≥ -2147483648; ≤ 2147483647
created_atstring (date-time) または null必須
descriptionstring必須
namestring必須
needs_rerunboolean必須Saved before result sets were cached: run it again to read its result.
needs_resavingboolean必須The stored search cannot be run as it was stored: save it again.
reasonstring または null必須Why the search needs re-saving.
saved_search_idstring必須
searchSavedSearchSpec または null必須The search; null when it needs re-saving.
statusstring必須pending, completed, failed, needs_rerun or needs_resaving.
summarystring または null必須The plain-language summary written when the search was saved.
total_hit_countinteger必須The documents the last run matched. ≥ -2147483648; ≤ 2147483647

SavedSearchCreateInput​

フィールド型必須説明
descriptionstring または null任意Up to 255 characters.
namestring必須Up to 255 characters.
searchSavedSearchSpecInput必須What to search for.

SavedSearchSpec​

フィールド型必須説明
date_rangesSearchDateRange の配列必須Keep the documents whose dates fall in every range.
document_number_prefixesstring の配列必須Keep the documents whose number starts with one of these, ignoring case.
exclude_duplicatesboolean または null必須Hide the documents that duplicate another document's number.
facet_filtersSearchFacetFilter の配列必須Keep the documents whose folder, tag, location, file author and so on hold one of the values. The values are the ones POST /documents/aggregate lists.
querystring または null必須Full text, as in POST /documents/search.
reference_numbersstring の配列必須Keep the documents whose reference number contains one of these, ignoring case.
weightsSearchWeights または null必須How much each field counts towards the score of a match of the query. 0 leaves a field out.

SavedSearchSpecInput​

フィールド型必須説明
date_rangesSearchDateRangeInput の配列任意Keep the documents whose dates fall in every range.
document_number_prefixesstring の配列任意Keep the documents whose number starts with one of these, ignoring case.
exclude_duplicatesboolean または null任意Hide the documents that duplicate another document's number.
facet_filtersSearchFacetFilterInput の配列任意Keep the documents whose folder, tag, location, file author and so on hold one of the values. The values are the ones POST /documents/aggregate lists.
querystring または null任意Full text, as in POST /documents/search.
reference_numbersstring の配列任意Keep the documents whose reference number contains one of these, ignoring case.
weightsSearchWeightsInput または null任意How much each field counts towards the score of a match of the query. 0 leaves a field out.

SearchDateRange​

フィールド型必須説明
fieldstring必須One of document_date, created_at, file_created_at, file_modified_at.
fromstring (date) または null必須The first day; open when left out.
tostring (date) または null必須The last day; open when left out.

SearchDateRangeInput​

フィールド型必須説明
fieldstring必須One of document_date, created_at, file_created_at, file_modified_at.
fromstring (date) または null任意The first day; open when left out.
tostring (date) または null任意The last day; open when left out.

SearchFacetFilter​

フィールド型必須説明
facetstring必須One of document_type, document_sub_type, from, to, project, folder, location, tag, created_by, file_content_type, file_author, file_last_author, file_producer, file_title.
valuesSearchFacetValue の配列必須Alternatives: a document is kept when its facet holds any of them.

SearchFacetFilterInput​

フィールド型必須説明
facetstring必須One of document_type, document_sub_type, from, to, project, folder, location, tag, created_by, file_content_type, file_author, file_last_author, file_producer, file_title.
valuesSearchFacetValueInput の配列必須Alternatives: a document is kept when its facet holds any of them.

SearchFacetValue​

フィールド型必須説明
include_childrenboolean必須With match exact, also select the values under this one in a hierarchy (a folder's subfolders): the facet starts with the value, ignoring case.
matchstring または null必須exact (the default: the facet equals the value) or contains (the facet contains the text, ignoring case).
valuestring必須A value as the facet lists it. An empty string selects the documents with no value.

SearchFacetValueInput​

フィールド型必須説明
include_childrenboolean任意With match exact, also select the values under this one in a hierarchy (a folder's subfolders): the facet starts with the value, ignoring case.
matchstring または null任意exact (the default: the facet equals the value) or contains (the facet contains the text, ignoring case).
valuestring必須A value as the facet lists it. An empty string selects the documents with no value.

SearchWeights​

フィールド型必須説明
ccsinteger または null必須
contentinteger または null必須
descriptioninteger または null必須
document_numberinteger または null必須
foldersinteger または null必須
frominteger または null必須
other_numberinteger または null必須
reference_numberinteger または null必須
tointeger または null必須

SearchWeightsInput​

フィールド型必須説明
ccsinteger または null任意
contentinteger または null任意
descriptioninteger または null任意
document_numberinteger または null任意
foldersinteger または null任意
frominteger または null任意
other_numberinteger または null任意
reference_numberinteger または null任意
tointeger または null任意