瀏覽代碼

Adapt version check after backport

Relates #43862
jimczi 6 年之前
父節點
當前提交
00a5e5a42a
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java

+ 1 - 3
server/src/main/java/org/elasticsearch/index/mapper/TextFieldMapper.java

@@ -198,10 +198,8 @@ public class TextFieldMapper extends FieldMapper {
                  * even if it is different from the expected one (in case the field is nested under an object
                  * or a multi-field). This way search will continue to work on old indices and new indices
                  * will use the expected full name.
-                 *
-                 * TODO change version expectation after backport v8 -> v7.2.1
                  **/
-                String fullName = context.indexCreatedVersion().before(Version.V_8_0_0) ? name() : buildFullName(context);
+                String fullName = context.indexCreatedVersion().before(Version.V_7_2_1) ? name() : buildFullName(context);
                 PrefixFieldType prefixFieldType =
                     new PrefixFieldType(fullName, fullName + "._index_prefix", minPrefixChars, maxPrefixChars);
                 fieldType().setPrefixFieldType(prefixFieldType);