Skip to main content

Count the document texts a passage filter matches.

POST/api/v1/passages/aggregatedocuments:search

Needs Search Document Metadata and View Document Metadata. The clustering app's row count for a filter: the number of document texts (one per document, or per page or image of one) that have passages and match filter, among the documents the caller can read. filter is the one of search_passages; without it every text the caller can read is counted.

Scopedocuments:search
AsynchronousNo
MCP toolaggregate_passages
Portal permissionssearch_document_metadata, view_document_metadata

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonPassageAggregateInput

Responses​

StatusDescriptionBody
200Success.application/json PassageAggregateResult
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
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

PassageAggregateInput​

FieldTypeRequiredDescription
filterobject or nullOptionalThe filter of search_passages; without it every text the caller can read is counted.

PassageAggregateResult​

FieldTypeRequiredDescription
total_countintegerRequiredThe document texts that have passages and match the filter. ≥ -2147483648; ≤ 2147483647