[ML] Search model state docs using correct id
Original commit: elastic/x-pack-elasticsearch@70400101ad
This commit is contained in:
parent
f06b4fbbaf
commit
a6c62f0717
|
@ -1119,7 +1119,7 @@ public class JobProvider {
|
|||
// the order the C++ process expects.
|
||||
int numDocs = modelSnapshot.getSnapshotDocCount();
|
||||
for (docNum = 1; docNum <= numDocs; ++docNum) {
|
||||
String docId = String.format(Locale.ROOT, "%s_%d", modelSnapshot.getSnapshotId(), docNum);
|
||||
String docId = String.format(Locale.ROOT, "%s_%d", ModelSnapshot.documentId(modelSnapshot), docNum);
|
||||
|
||||
LOGGER.trace("ES API CALL: get ID {} type {} from index {}", docId, ModelState.TYPE, indexName);
|
||||
|
||||
|
|
Loading…
Reference in New Issue