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

Count what a search matches, and the facets of the matches.

POST/api/v1/documents/aggregatedocuments:search
注記

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

Needs Search Document Metadata for total_count and View Search Facets for facets and facet_values, as the Portal's count and facet routes do. The Search app's total, filter panel and filter-list lookup for one query. query, weights, facet_filters, document_number_prefixes, reference_numbers, date_ranges and exclude_duplicates are the members of POST /documents/search that its Search app engine reads. include lists what to compute: total_count (the number of documents the caller can read that match), facets (the matches counted by each facet, the most frequent values first, and by month of the document date); both by default. facet_values asks for one facet's values containing a text, with the facet's own filter set aside so another value of the same list can be found. A facet value returned here is a value facet_filters takes. A large organisation's facets are estimated from a sample: is_approximate says so.

スコープdocuments:search
非同期いいえ
MCP ツールaggregate_documents
会社に必要な機能search

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonDocumentAggregateQueryInput

応答​

ステータス説明本文
200Success.application/json DocumentAggregate
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
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422unsupported_for_tenant, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

AggregateFacetValuesInput​

フィールド型必須説明
containsstring または null任意Only the values containing this text, ignoring case.
facetstring必須The facet whose values to list: one of the names facet_filters takes.

DocumentAggregate​

フィールド型必須説明
document_date_monthsFacetBucket の配列必須The matches per month of their document date, value YYYY-MM, oldest first; empty when include leaves facets out.
facet_valuesFacetValues または null必須The facet_values asked for; null when none was.
facetsFacetCounts の配列必須The matches counted by each facet; empty when include leaves facets out.
is_approximateboolean または null必須The facet counts were estimated from a sample of a large organisation's documents and scaled up: a rare value may be missing. Null when facets were not computed.
total_countinteger または null必須The documents the caller can read that match; null when include leaves it out.
truncated_facetsstring の配列必須The facets that have more values than were listed.

DocumentAggregateQueryInput​

フィールド型必須説明
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.
facet_valuesAggregateFacetValuesInput または null任意List the values of one facet that contain a text.
includestring の配列任意What to compute: total_count, facets. Both when left out.
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.

FacetBucket​

フィールド型必須説明
document_countinteger必須The matching documents that hold the value. ≥ -2147483648; ≤ 2147483647
valuestring必須The value as facet_filters takes it. An empty string counts the documents with no value.

FacetCounts​

フィールド型必須説明
facetstring必須
valuesFacetBucket の配列必須

FacetValues​

フィールド型必須説明
documents_without_valueinteger必須The matching documents with no value, when the values were not narrowed to a text. ≥ -2147483648; ≤ 2147483647
facetstring必須
is_approximateboolean必須Counted on a sample of a large organisation's documents and scaled up.
is_truncatedboolean必須More values than were listed exist: type more of the value to find it.
valuesFacetBucket の配列必須The most frequent first; documents with no value are left out (see documents_without_value).

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.

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.

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.

SearchWeightsInput​

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