Skip to content

Commit 5be66a0

Browse files
committed
Nit fixes in Search path for testing
1 parent 29a3569 commit 5be66a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/opensearch/search/fetch/FetchPhase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ private HitContext prepareNonNestedHitContext(
375375
//if (fieldsVisitor.source() != null) {
376376
hitContext.sourceLookup().setSource(fieldsVisitor.source());
377377
try {
378-
Map<String, Object> sourceAsMap = buildUsingDocValues(docId, subReaderContext.reader(), context.mapperService(), context.indexShard());
378+
Map<String, Object> sourceAsMap = buildUsingDocValues(subDocId, subReaderContext.reader(), context.mapperService(), context.indexShard());
379379
sourceAsMap = unflatten(sourceAsMap);
380380
try (XContentBuilder builder = XContentFactory.jsonBuilder()) {
381381
builder.map(sourceAsMap);

0 commit comments

Comments
 (0)