Skip to content

Commit 72345a1

Browse files
committed
cleanup2
1 parent 36c7c77 commit 72345a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ private MatchOnlyTextFieldType buildFieldType(MapperBuilderContext context) {
142142

143143
@Override
144144
public MatchOnlyTextFieldMapper build(MapperBuilderContext context) {
145+
MatchOnlyTextFieldType tft = buildFieldType(context);
145146
final boolean storeSource;
146147
if (multiFieldsNotStoredByDefaultIndexVersionCheck(indexCreatedVersion)) {
147148
storeSource = context.isSourceSynthetic()
@@ -150,7 +151,6 @@ public MatchOnlyTextFieldMapper build(MapperBuilderContext context) {
150151
} else {
151152
storeSource = context.isSourceSynthetic();
152153
}
153-
MatchOnlyTextFieldType tft = buildFieldType(context);
154154
return new MatchOnlyTextFieldMapper(leafName(), Defaults.FIELD_TYPE, tft, builderParams(this, context), storeSource, this);
155155
}
156156
}

0 commit comments

Comments
 (0)