Skip to content

Commit 00a5e5a

Browse files
committed
Adapt version check after backport
Relates #43862
1 parent e28fb1f commit 00a5e5a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,8 @@ public TextFieldMapper build(BuilderContext context) {
198198
* even if it is different from the expected one (in case the field is nested under an object
199199
* or a multi-field). This way search will continue to work on old indices and new indices
200200
* will use the expected full name.
201-
*
202-
* TODO change version expectation after backport v8 -> v7.2.1
203201
**/
204-
String fullName = context.indexCreatedVersion().before(Version.V_8_0_0) ? name() : buildFullName(context);
202+
String fullName = context.indexCreatedVersion().before(Version.V_7_2_1) ? name() : buildFullName(context);
205203
PrefixFieldType prefixFieldType =
206204
new PrefixFieldType(fullName, fullName + "._index_prefix", minPrefixChars, maxPrefixChars);
207205
fieldType().setPrefixFieldType(prefixFieldType);

0 commit comments

Comments
 (0)