Skip to content

Commit 3922de6

Browse files
committed
iter
1 parent 098d8a3 commit 3922de6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

modules/mapper-extras/src/main/java/org/elasticsearch/index/mapper/extras/TokenCountFieldMapper.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public TokenCountFieldMapper build(MapperBuilderContext context) {
8686
store.getValue(),
8787
hasDocValues.getValue(),
8888
nullValue.getValue(),
89-
meta.getValue()
89+
meta.getValue(),
90+
context.isSourceSynthetic()
9091
);
9192
return new TokenCountFieldMapper(leafName(), ft, builderParams(this, context), this);
9293
}
@@ -100,7 +101,8 @@ static class TokenCountFieldType extends NumberFieldMapper.NumberFieldType {
100101
boolean isStored,
101102
boolean hasDocValues,
102103
Number nullValue,
103-
Map<String, String> meta
104+
Map<String, String> meta,
105+
boolean isSyntheticSource
104106
) {
105107
super(
106108
name,
@@ -114,7 +116,8 @@ static class TokenCountFieldType extends NumberFieldMapper.NumberFieldType {
114116
null,
115117
false,
116118
null,
117-
null
119+
null,
120+
isSyntheticSource
118121
);
119122
}
120123

plugins/mapper-size/src/main/java/org/elasticsearch/index/mapper/size/SizeFieldMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public SizeFieldMapper build() {
5050

5151
private static class SizeFieldType extends NumberFieldType {
5252
SizeFieldType() {
53-
super(NAME, NumberType.INTEGER, true, true, true, false, null, Collections.emptyMap(), null, false, null, null);
53+
super(NAME, NumberType.INTEGER, true, true, true, false, null, Collections.emptyMap(), null, false, null, null, false);
5454
}
5555

5656
@Override

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,9 +1773,6 @@ public void parseNonNullValue(XContentParser parser, List<Number> accumulator) t
17731773
accumulator.add(type.parse(rawValue, coerce));
17741774
} catch (Exception e) {
17751775
// Malformed value, skip it./gradlew ":server:test" --tests
1776-
// "org.elasticsearch.index.mapper.blockloader.HalfFloatFieldBlockLoaderTests.testBlockLoader"
1777-
// -Dtests.seed=F720BB3C1E5FC1C0:E76110A0744DB0CB -Dtests.locale=or-IN -Dtests.timezone=America/Miquelon
1778-
// -Druntime.java=23
17791776
}
17801777
}
17811778
};

0 commit comments

Comments
 (0)