Skip to content

Commit c4a52cd

Browse files
committed
Fixed incorrect synthetic source field name for text fields
1 parent e0a5d2f commit c4a52cd

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
@@ -1588,6 +1588,10 @@ protected void write(XContentBuilder b, Object value) throws IOException {
15881588
});
15891589
}
15901590

1591+
if (fieldType.indexOptions() != IndexOptions.NONE) {
1592+
return super.syntheticSourceSupport();
1593+
}
1594+
15911595
return new SyntheticSourceSupport.Native(() -> syntheticFieldLoader(fullPath(), leafName()));
15921596
}
15931597

0 commit comments

Comments
 (0)