Skip to content

Commit 2068ffe

Browse files
committed
Fixed incorrect synthetic source field name for text fields
1 parent 0eab5c5 commit 2068ffe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,10 @@ protected void write(XContentBuilder b, Object value) throws IOException {
15841584
});
15851585
}
15861586

1587+
if (fieldType.indexOptions() != IndexOptions.NONE) {
1588+
return super.syntheticSourceSupport();
1589+
}
1590+
15871591
return new SyntheticSourceSupport.Native(() -> syntheticFieldLoader(fullPath(), leafName()));
15881592
}
15891593

0 commit comments

Comments
 (0)