IRPCSearch.GetFolderObjectsCount

View as Markdown

Vault API / core read session or assertion idempotent returns metadata structure version

Gets the count of objects in the specified folder.

ServiceSearch MFiles.IRPCSearch
gRPC method/MFiles.IRPCSearch/GetFolderObjectsCount
HTTP (mf-http-grpc)POST /grpc/v1/get-folder-objects-count
RequestGetFolderObjectsCountRequest
ResponseGetFolderObjectsCountResponse
Book and levelVault API, core
Kindread
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

Used by the M-Files clients to show object counts in folder listings. To count the results of a search, use GetObjectCountInSearch.

Request: GetFolderObjectsCountRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
callimpCallImportanceThe importance level of this call. Typically CALL_IMPORTANCE_NORMAL.Values: CALL_IMPORTANCE_DEFAULT (0), CALL_IMPORTANCE_NORMAL (1), CALL_IMPORTANCE_CAN_BE_REJECTED (2).
search_optionsSearchTargetSearch options.
search_options.indexstringThe name of the search index to use. Empty uses the vault's default index. An unknown name fails with "Target index is not available."
search_options.modeSearchModeWhether to prefer, require or avoid the full-text search engine. See SearchMode.Values: SEARCH_MODE_DEFAULT (0), SEARCH_MODE_FAVOR_FULL_TEXT_SEARCH (1), SEARCH_MODE_REQUIRE_FULL_TEXT_SEARCH (2), SEARCH_MODE_REQUIRE_DATABASE_SEARCH (3).
search_options.search_master_storageboolTrue to also search objects kept in Master Storage, where the vault supports it.
search_options.continuation_tokenstringContinuation token for paging results from Master Storage. SearchObjects does not support it and fails with "Continuation token is not supported." when it is set together with search_master_storage.
parent[]repeated FolderDescribes the parent folder.
parent[].typeFolderTypeThe type of the folder, for example FOLDER_TYPE_VIEW_FOLDER or FOLDER_TYPE_PROPERTY_FOLDER.Values: FOLDER_TYPE_UNKNOWN (0), FOLDER_TYPE_ANY_FOLDER (1), FOLDER_TYPE_VIEW_FOLDER (2), FOLDER_TYPE_PROPERTY_FOLDER (3), FOLDER_TYPE_TRADITIONAL_FOLDER (4), FOLDER_TYPE_SEARCH_FOLDER (5), FOLDER_TYPE_EXTERNAL_VIEW_FOLDER (6).
parent[].dataFolderInfoUnionAdditional folder type -specific information as a union.
parent[].data.any_folderFolderInfoUnion.AnyFolderData (oneof data)Any folder type.
parent[].data.view_folderFolderInfoUnion.ViewFolderData (oneof data)View folder type.
parent[].data.property_folderFolderInfoUnion.PropertyFolderData (oneof data)Property (virtual) folder type.
parent[].data.traditional_folderFolderInfoUnion.TraditionalFolderData (oneof data)Traditional folder type.
parent[].data.search_folderFolderInfoUnion.SearchFolderData (oneof data)Search folder (extended view folder) type.
parent[].data.external_view_folderFolderInfoUnion.ExternalViewFolderData (oneof data)External view folder type.
facetsearchflagsFACETSEARCHFLAGSFacet search flags. Ignored if bFacetMode is false.
facetsearchflags.allboolSpecifies all flags set; Including any future flags.
facetsearchflags.enabledboolFacet search is enabled.
facetsearchflags.ignore_search_permissionsboolNo ACL check on facet search.
facetsearchflags.ignore_group_permissionsboolNo ACL check on facet groups.
facetsearchflags.ignore_value_permissionsboolNo ACL check on individual facet values.
facetsearchflags.sort_facetsboolSort facet values in descending occurrence order within each facet group.
facetsearchflags.ascending_orderboolIf SortFacetValues is present, sort facet values in ascending occurrence order within each facet group.
srcrequestarr[]repeated SearchResultsCountRequestSearch results count requests.
srcrequestarr[].group_idint32The identifier of a search results group.
srcrequestarr[].count_thresholduint32Threshold for the count. If zero, it should be ignored. A non-zero value specifies that the caller does not request an exact count if it is greater than this threshold value. If a real count is smaller than or equal this threshold, it is reported as an exact count.
max_objects_limit_for_groupsuint32The OT specific limit for object count.
facet_filterStringValueIf set, specifies the additional facet search filter.
facet_filter.valuestringString.

Response: GetFolderObjectsCountResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
psrcountarr[]repeated SearchResultsCountResulting search results counts.
psrcountarr[].group_idint32The group that was counted: an object type ID, or -100 for all object types.
psrcountarr[].flagsSRCOUNTFLAGSHow to read count: exact_measure if exact, more_than if more objects match.
psrcountarr[].flags.allboolSpecifies all flags set; Including any future flags.
psrcountarr[].flags.exact_measureboolIf available, the reported result count is an exact measure.
psrcountarr[].flags.more_thanboolIf available, the reported result count is not an exact measure but it indicates that an exact count is more than the reported count.
psrcountarr[].flags.multi_phase_initialboolIf available, the reported result count is based on the added items only.
psrcountarr[].flags.multi_phase_count_onlyboolIf available, the reported result count is to be associated with a group without actual results.
psrcountarr[].flags.multi_phaseboolIf available, the reported result count supports multi-phase search, and it is to be associated with the initial result count rather than the total count.
psrcountarr[].flags.additional_itemsboolIdentifies a search results count.
psrcountarr[].countuint32The number of matching objects.
psearchstatusflagsSEARCHSTATUSFLAGSReceives search status flags.
psearchstatusflags.allboolSpecifies all flags set; Including any future flags.
psearchstatusflags.multiphase_object_type_search_neededboolMulti-phase OT search is needed.
psearchstatusflags.wildcard_expansion_limit_exceededboolWildcard expansion limit has been exceeded (but some results has been returned anyway).
psearchstatusflags.may_contain_stale_databoolData returned by search may be out of date.
psearchstatusflags.resorted_to_default_sortboolRequested sorting is not supported and result set was established using the default sorting (relevance).
psearchstatusflags.resorted_to_default_sort_too_many_resultsboolRequested sorting is not supported and result set was established using the default sorting (relevance) because there are too many matching results for sorting.
psearchstatusflags.sorted_by_engineboolData returned by search was sorted by the engine (Global Sorting).
search_output_infoSearchOutputInfoAdditional information about the completed search operation.
search_output_info.processing_time_at_engine_in_millisecondsint32The processing time at the search engine, in milliseconds. -1 if not known.
search_output_info.processing_time_at_engine_from_mfserver_in_millisecondsint32The processing time at the search engine, including network roundtrip from MFServer, in milliseconds. -1 if not known.
search_output_info.processing_time_at_mfserver_in_millisecondsint32The total processing time at MFServer, in milliseconds. -1 if not known.
search_output_info.processing_time_at_mfserver_from_client_in_millisecondsint32The total processing time at MFServer, including network roundtrip from the client, in milliseconds. -1 if not known.