[ML] Search model state docs using correct id

Original commit: elastic/x-pack-elasticsearch@70400101ad
This commit is contained in:
Dimitrios Athanasiou 2017-02-22 13:53:22 +00:00
parent f06b4fbbaf
commit a6c62f0717
1 changed files with 1 additions and 1 deletions

View File

@ -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);