File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
x-pack/plugin/wildcard/src/main/java/org/elasticsearch/xpack/wildcard/mapper Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments