diff --git a/RFS/src/main/java/org/opensearch/migrations/bulkload/common/LuceneDocumentsReader.java b/RFS/src/main/java/org/opensearch/migrations/bulkload/common/LuceneDocumentsReader.java index 0b3f5fbc0..2308769af 100644 --- a/RFS/src/main/java/org/opensearch/migrations/bulkload/common/LuceneDocumentsReader.java +++ b/RFS/src/main/java/org/opensearch/migrations/bulkload/common/LuceneDocumentsReader.java @@ -207,14 +207,17 @@ protected RfsLuceneDocument getDocument(IndexReader reader, int docId, boolean i } } if (id == null) { - log.atError().setMessage("Document with index {} does not have an id. Skipping") - .addArgument(docId).log(); + log.atWarn().setMessage("Document with index {}, doc id: {} does not have an referenceable id. Skipping") + .addArgument(reader.getContext().id().toString()) + .addArgument(docId) + .log(); return null; // Skip documents with missing id } if (sourceBytes == null || sourceBytes.bytes.length == 0) { log.atWarn().setMessage("Document {} doesn't have the _source field enabled") - .addArgument(id).log(); + .addArgument(id) + .log(); return null; // Skip these }