IRPCIndexingDataSource.CacheFileForIndexing

View as Markdown

Server integration API / specialized internal: not for applications write session

Writes a file version, in the requested format, to a temporary folder on the server computer and returns its local path.

ServiceIndexing data source MFiles.IRPCIndexingDataSource
gRPC method/MFiles.IRPCIndexingDataSource/CacheFileForIndexing
HTTP (mf-http-grpc)POST /grpc/v1/cache-file-for-indexing
RequestCacheFileForIndexingRequest
ResponseCacheFileForIndexingResponse
Book and levelServer integration API, specialized
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

For M-Files components only. The M-Files indexing service, which runs on the server computer, calls it. Applications should not call it: the result is a path on the server's own disk.

Request: CacheFileForIndexingRequest

A structure that specifies cache file for indexing request.

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

FieldTypeDescription
file_info_for_fixFileInfoForFIXFile info for indexing.
file_info_for_fix.obj_file_verObjFileVerFile version.
file_info_for_fix.obj_file_ver.obj_idObjIDThe object that owns the file.
file_info_for_fix.obj_file_ver.file_verFileVerThe specific file version, as in File.file_ver.
file_info_for_fix.is_destroyedboolTrue if the file has been destroyed and is no longer available. If true then only the objfilever member is valid.
file_info_for_fix.data_file_versionint32Data file version if the file is an internal file.
file_info_for_fix.sizeint64The logical size of the file in bytes.
file_info_for_fix.extensionstringThe file extension, not including the dot (e.g. "doc"). This unencoded extension may contain characters that are not allowed in file extensions in file systems.
file_info_for_fix.relevance_scorefloatRelevance score of the object.
file_info_for_fix.file_ids[]repeated FileIDAll file IDs of the object's LCI version.
file_info_for_fix.file_ids[].typeFileIDTypeFILE_IDTYPE_SPECIFIC for one file.Values: FILE_IDTYPE_UNINITIALIZED (0), FILE_IDTYPE_ALL (1), FILE_IDTYPE_ANY (2), FILE_IDTYPE_SPECIFIC (3).
file_info_for_fix.file_ids[].internal_idint32The file ID.
file_info_for_fix.file_ids[].external_repository_idstringUsed only for files in external repositories. Leave empty.
file_info_for_fix.timestampLogicalTimestampLogical timestamp for indexing.
file_info_for_fix.timestamp.typeLogicalTimestampTypeLogical timestamp type.Values: LOGICAL_TIMESTAMP_TYPE_UNINITIALIZED (0), LOGICAL_TIMESTAMP_TYPE_IGNORED (1), LOGICAL_TIMESTAMP_TYPE_INTEGER (2), LOGICAL_TIMESTAMP_TYPE_STRING (3), LOGICAL_TIMESTAMP_TYPE_INTEGER_AND_STRING (4).
file_info_for_fix.timestamp.dataLogicalTimestampUnionThe data as a union.
file_info_for_fix.object_dataObjectVersionExWPIf not null contains the basic object version information. The search results are returned from the server using this information with external content repositories.
file_info_for_fix.object_data.object_versionObjectVersionExObject info.
file_info_for_fix.object_data.properties[]repeated PropertyValueProperty values, or an empty array.
file_info_for_fix.object_data.aclAccessControlListIf set, ACL.
file_info_for_fix.object_data.current_user_permissionsObjectPermissionsForClientIf set, permissions of the object version.
file_info_for_fix.last_modified_for_indexinggoogle.protobuf.TimestampThe last modified timestamp for indexing.
file_info_for_fix.repository_pathFolderArrayIf not null contains the array of folders describing the repository path to the object version location. The search results are returned from the server using this information with external content repositories.
file_info_for_fix.repository_path.value[]repeated FolderArray of Folder structures.
file_formatFileFormatSpecifies the requested file format to cache.Values: FILE_FORMAT_NATIVE (0), FILE_FORMAT_PDF (1), FILE_FORMAT_DISPLAY_ONLY_PDF (2), FILE_FORMAT_PLAIN_TEXT (3), FILE_FORMAT_MARKDOWN (4).
sub_dirstringOptional subfolder under the vault's indexing temporary folder (Filedata/Temp/FIX).

Response: CacheFileForIndexingResponse

A structure that specifies cache file for indexing response.

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

FieldTypeDescription
full_pathstringThe full local path of the cached file on the server computer.
file_formatFileFormatThe format actually produced, which can differ from the requested one.Values: FILE_FORMAT_NATIVE (0), FILE_FORMAT_PDF (1), FILE_FORMAT_DISPLAY_ONLY_PDF (2), FILE_FORMAT_PLAIN_TEXT (3), FILE_FORMAT_MARKDOWN (4).