The migrate endpoint accepts source_index, username_path, backend_roles_path and default_owner (MigrateResourceSharingInfoApiAction.java:526) and migrates every document in the index.
A protected index may hold documents that are not resources. .plugins-ml-model stores one document per model chunk alongside the model metadata document (MLModelManager.java:1042-1047), and chunk documents carry no model_group_id, so migrating that index would create a parentless sharing record per chunk.
Request: an optional query on the migrate request, so a migration can target a subset of an index — for the case above, must_not exists(chunk_number).
The migrate endpoint accepts
source_index,username_path,backend_roles_pathanddefault_owner(MigrateResourceSharingInfoApiAction.java:526) and migrates every document in the index.A protected index may hold documents that are not resources.
.plugins-ml-modelstores one document per model chunk alongside the model metadata document (MLModelManager.java:1042-1047), and chunk documents carry nomodel_group_id, so migrating that index would create a parentless sharing record per chunk.Request: an optional query on the migrate request, so a migration can target a subset of an index — for the case above,
must_not exists(chunk_number).