IRPCIndexingDataSource2.GetObjectForIXById

View as Markdown

Server integration API / specialized internal: not for applications read session idempotent

Gets the index data of one object by its ID: the same data that GetNextObjectsForIX returns for the latest checked-in version and, if requested, the checked-out version.

The checked-out version is returned whoever has checked it out, and the index metadata (relevance score, last-modified time for indexing) is computed as in the enumerator.

ServiceIndexing data source (version 2) MFiles.IRPCIndexingDataSource2
gRPC method/MFiles.IRPCIndexingDataSource2/GetObjectForIXById
HTTP (mf-http-grpc)POST /grpc/v1/get-object-for-ixby-id
RequestGetObjectForIXByIdRequest
ResponseGetObjectForIXByIdResponse
Book and levelServer integration API, specialized
Kindread
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionno
Streamingnone (unary)

Remarks

For M-Files components only. M-Files' cloud search indexing services call it to index an object that a crawl has not delivered. Applications should not call it.

Request: GetObjectForIXByIdRequest

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

FieldTypeDescription
obj_idObjIDThe object, by its internal ID.
obj_id.typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
obj_id.item_id.internal_idint32The ID of the object or value list item.
obj_id.item_id.external_repository_idExternalRepositoryIDUsed only for objects in external repositories (external connectors). Leave it unset for objects stored in the vault.
include_checked_outboolTrue to also return the checked-out version when the object is checked out.

Response: GetObjectForIXByIdResponse

The response of GetObjectForIXById: the index data of the latest checked-in version, of the checked-out version, or of both. An object that does not exist fails the call with "Not found." instead.

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

FieldTypeDescription
latest_checked_inObjectDataForIXThe index data of the latest checked-in version. Unset if the object has no checked-in version.
latest_checked_in.primary_obj_idObjIDThe primary identity of the object. Also valid when the object has been destroyed.
latest_checked_in.primary_obj_id.typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
latest_checked_in.primary_obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
latest_checked_in.is_destroyedboolTrue if the object has been destroyed and is no longer available. If true then only the objidPrimary and oim members are valid.
latest_checked_in.is_skippedboolTrue if the object has been skipped and cannot be indexed. If true then only the objidPrimary and oim members are valid.
latest_checked_in.object_versionObjectVersionExWPContains the basic object version information, always latest checked-in version.
latest_checked_in.object_version.object_versionObjectVersionExObject info.
latest_checked_in.object_version.properties[]repeated PropertyValueProperty values, or an empty array.
latest_checked_in.object_version.aclAccessControlListIf set, ACL.
latest_checked_in.object_version.current_user_permissionsObjectPermissionsForClientIf set, permissions of the object version.
latest_checked_in.version_commentPropertyValueThe version comment history of the object excluding checkedout version.
latest_checked_in.version_comment.property_defint32The property definition ID, for example 0 for "Name or title" or 100 for "Class".
latest_checked_in.version_comment.valueTypedValueThe value. Its type must match the data type of the property definition.
latest_checked_in.updated_files[]repeated FileIDIdentifies the files that have been updated.
latest_checked_in.updated_files[].typeFileIDTypeFILE_IDTYPE_SPECIFIC for one file.Values: FILE_IDTYPE_UNINITIALIZED (0), FILE_IDTYPE_ALL (1), FILE_IDTYPE_ANY (2), FILE_IDTYPE_SPECIFIC (3).
latest_checked_in.updated_files[].internal_idint32The file ID.
latest_checked_in.updated_files[].external_repository_idstringUsed only for files in external repositories. Leave empty.
latest_checked_in.alias_obj_ids[]repeated ObjIDAdditional ID aliases for the object such as the external object ID, if any, in some other system/repository/vault.
latest_checked_in.alias_obj_ids[].typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
latest_checked_in.alias_obj_ids[].item_idItemIDThe ID of the object within its type, in item_id.internal_id.
latest_checked_in.index_metadataObjectIndexMetadataMetadata information for storing the object in the index.
latest_checked_in.index_metadata.relative_relevance_scorefloatRelevance score of the object.
latest_checked_in.index_metadata.last_modified_for_indexing_utcgoogle.protobuf.TimestampThe last modified timestamp for indexing.
latest_checked_in.index_metadata.version_for_ixLogicalTimestampLogical timestamp for indexing.
latest_checked_in.repository_pathFolderArrayIf not null contains the array of folders describing the repository path to the object version location.
latest_checked_in.repository_path.value[]repeated FolderArray of Folder structures.
latest_checked_in.all_editors_historyPropertyValueAggregated DISTINCT user IDs (VALUELIST_USERS) from PROPERTYDEF_LASTMODIFIEDBY and PROPERTYDEF_VERSION_EDITORS across every checked-in version, represented as MSLOOKUP from VALUELIST_USERS. Empty when the feature flag is off or for external-repository objects.
latest_checked_in.all_editors_history.property_defint32The property definition ID, for example 0 for "Name or title" or 100 for "Class".
latest_checked_in.all_editors_history.valueTypedValueThe value. Its type must match the data type of the property definition.
latest_checked_in.acl_for_indexingSimpleACLPre-resolved read-permission projection of this object version's ACL: one entry per component (index 0 is the custom component, the rest are automatic components in stable order), each reduced to concrete allowed/denied actor IDs with additive components merged in, deleted components removed, and pseudo-users resolved. unset if not supplied by this server; set with zero entries if supplied and the ACL resolved to no components. On the checked-out version, the checked-out-to user has already been injected into every component's allowed array; the latest-checked-in version's projection never carries that injection.
latest_checked_in.acl_for_indexing.value[]repeated SimpleACLComponentComponents.
checked_outObjectDataForIXThe index data of the checked-out version. Unset unless include_checked_out is true and the object is checked out.
checked_out.primary_obj_idObjIDThe primary identity of the object. Also valid when the object has been destroyed.
checked_out.primary_obj_id.typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
checked_out.primary_obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
checked_out.is_destroyedboolTrue if the object has been destroyed and is no longer available. If true then only the objidPrimary and oim members are valid.
checked_out.is_skippedboolTrue if the object has been skipped and cannot be indexed. If true then only the objidPrimary and oim members are valid.
checked_out.object_versionObjectVersionExWPContains the basic object version information, always latest checked-in version.
checked_out.object_version.object_versionObjectVersionExObject info.
checked_out.object_version.properties[]repeated PropertyValueProperty values, or an empty array.
checked_out.object_version.aclAccessControlListIf set, ACL.
checked_out.object_version.current_user_permissionsObjectPermissionsForClientIf set, permissions of the object version.
checked_out.version_commentPropertyValueThe version comment history of the object excluding checkedout version.
checked_out.version_comment.property_defint32The property definition ID, for example 0 for "Name or title" or 100 for "Class".
checked_out.version_comment.valueTypedValueThe value. Its type must match the data type of the property definition.
checked_out.updated_files[]repeated FileIDIdentifies the files that have been updated.
checked_out.updated_files[].typeFileIDTypeFILE_IDTYPE_SPECIFIC for one file.Values: FILE_IDTYPE_UNINITIALIZED (0), FILE_IDTYPE_ALL (1), FILE_IDTYPE_ANY (2), FILE_IDTYPE_SPECIFIC (3).
checked_out.updated_files[].internal_idint32The file ID.
checked_out.updated_files[].external_repository_idstringUsed only for files in external repositories. Leave empty.
checked_out.alias_obj_ids[]repeated ObjIDAdditional ID aliases for the object such as the external object ID, if any, in some other system/repository/vault.
checked_out.alias_obj_ids[].typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
checked_out.alias_obj_ids[].item_idItemIDThe ID of the object within its type, in item_id.internal_id.
checked_out.index_metadataObjectIndexMetadataMetadata information for storing the object in the index.
checked_out.index_metadata.relative_relevance_scorefloatRelevance score of the object.
checked_out.index_metadata.last_modified_for_indexing_utcgoogle.protobuf.TimestampThe last modified timestamp for indexing.
checked_out.index_metadata.version_for_ixLogicalTimestampLogical timestamp for indexing.
checked_out.repository_pathFolderArrayIf not null contains the array of folders describing the repository path to the object version location.
checked_out.repository_path.value[]repeated FolderArray of Folder structures.
checked_out.all_editors_historyPropertyValueAggregated DISTINCT user IDs (VALUELIST_USERS) from PROPERTYDEF_LASTMODIFIEDBY and PROPERTYDEF_VERSION_EDITORS across every checked-in version, represented as MSLOOKUP from VALUELIST_USERS. Empty when the feature flag is off or for external-repository objects.
checked_out.all_editors_history.property_defint32The property definition ID, for example 0 for "Name or title" or 100 for "Class".
checked_out.all_editors_history.valueTypedValueThe value. Its type must match the data type of the property definition.
checked_out.acl_for_indexingSimpleACLPre-resolved read-permission projection of this object version's ACL: one entry per component (index 0 is the custom component, the rest are automatic components in stable order), each reduced to concrete allowed/denied actor IDs with additive components merged in, deleted components removed, and pseudo-users resolved. unset if not supplied by this server; set with zero entries if supplied and the ACL resolved to no components. On the checked-out version, the checked-out-to user has already been injected into every component's allowed array; the latest-checked-in version's projection never carries that injection.
checked_out.acl_for_indexing.value[]repeated SimpleACLComponentComponents.