Skip to content

Commit c1965a1

Browse files
committed
Fix compile error
1 parent 6c3b14b commit c1965a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

x-pack/plugin/wildcard/src/main/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapper.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,12 @@ public FieldMapper.Builder getMergeBuilder() {
11041104
protected SyntheticSourceSupport syntheticSourceSupport() {
11051105
return new SyntheticSourceSupport.Native(() -> {
11061106
var layers = new ArrayList<CompositeSyntheticFieldLoader.Layer>();
1107-
layers.add(new BinaryDocValuesSyntheticFieldLoaderLayer(fullPath()));
1107+
layers.add(new BinaryDocValuesSyntheticFieldLoaderLayer(fullPath()) {
1108+
@Override
1109+
protected void writeValue(XContentBuilder b, BytesRef value) throws IOException {
1110+
b.utf8Value(value.bytes, value.offset, value.length);
1111+
}
1112+
});
11081113
if (ignoreAbove.valuesPotentiallyIgnored()) {
11091114
layers.add(new CompositeSyntheticFieldLoader.StoredFieldLayer(originalName()) {
11101115
@Override

0 commit comments

Comments
 (0)