File tree 1 file changed +6
-2
lines changed
server/src/main/java/org/elasticsearch/index/codec
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,13 @@ public abstract class XPerFieldDocValuesFormat extends DocValuesFormat {
44
44
public static final String PER_FIELD_NAME = "ESPerFieldDV819" ;
45
45
46
46
/** {@link FieldInfo} attribute name used to store the format name for each field. */
47
- public static final String PER_FIELD_FORMAT_KEY = XPerFieldDocValuesFormat .class .getSimpleName () + ".format" ;
47
+ // FORK note: usage of PerFieldDocValuesFormat is needed for bwc purposes.
48
+ // (Otherwise, we load no fields from indices that use PerFieldDocValuesFormat)
49
+ public static final String PER_FIELD_FORMAT_KEY = PerFieldDocValuesFormat .class .getSimpleName () + ".format" ;
48
50
49
51
/** {@link FieldInfo} attribute name used to store the segment suffix name for each field. */
50
- public static final String PER_FIELD_SUFFIX_KEY = XPerFieldDocValuesFormat .class .getSimpleName () + ".suffix" ;
52
+ // FORK note: usage of PerFieldDocValuesFormat is needed for bwc purposes.
53
+ public static final String PER_FIELD_SUFFIX_KEY = PerFieldDocValuesFormat .class .getSimpleName () + ".suffix" ;
51
54
52
55
/** Sole constructor. */
53
56
protected XPerFieldDocValuesFormat () {
@@ -285,6 +288,7 @@ public static class FieldsReader extends DocValuesProducer {
285
288
}
286
289
}
287
290
291
+ // FORK note: the reason why PerFieldDocValuesFormat is forked:.
288
292
public DocValuesProducer getDocValuesProducer (FieldInfo field ) {
289
293
return fields .get (field .number );
290
294
}
You can’t perform that action at this time.
0 commit comments