Skip to content

Commit

Permalink
Nit fixes in Search path for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rayshrey committed Jan 10, 2025
1 parent 29a3569 commit 5be66a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ private HitContext prepareNonNestedHitContext(
//if (fieldsVisitor.source() != null) {
hitContext.sourceLookup().setSource(fieldsVisitor.source());
try {
Map<String, Object> sourceAsMap = buildUsingDocValues(docId, subReaderContext.reader(), context.mapperService(), context.indexShard());
Map<String, Object> sourceAsMap = buildUsingDocValues(subDocId, subReaderContext.reader(), context.mapperService(), context.indexShard());
sourceAsMap = unflatten(sourceAsMap);
try (XContentBuilder builder = XContentFactory.jsonBuilder()) {
builder.map(sourceAsMap);
Expand Down

0 comments on commit 5be66a0

Please sign in to comment.