Skip to content

Commit a13c553

Browse files
fix: rename variable to useDocValuesSkipper
1 parent d93d7ce commit a13c553

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public static final class Builder extends FieldMapper.Builder {
267267
private final ScriptCompiler scriptCompiler;
268268
private final IndexMode indexMode;
269269
private final IndexSortConfig indexSortConfig;
270-
private final boolean isDocValuesSkipperEnabled;
270+
private final boolean useDocValuesSkipper;
271271

272272
public Builder(
273273
String name,
@@ -299,7 +299,7 @@ public Builder(
299299
IndexMode indexMode,
300300
IndexSortConfig indexSortConfig,
301301
IndexVersion indexCreatedVersion,
302-
boolean isDocValuesSkipperEnabled
302+
boolean useDocValuesSkipper
303303
) {
304304
super(name);
305305
this.resolution = resolution;
@@ -325,7 +325,7 @@ public Builder(
325325
}
326326
this.indexMode = indexMode;
327327
this.indexSortConfig = indexSortConfig;
328-
this.isDocValuesSkipperEnabled = isDocValuesSkipperEnabled;
328+
this.useDocValuesSkipper = useDocValuesSkipper;
329329
}
330330

331331
DateFormatter buildFormatter() {
@@ -399,7 +399,7 @@ private Long parseNullValue(DateFieldType fieldType) {
399399
@Override
400400
public DateFieldMapper build(MapperBuilderContext context) {
401401
final String fullFieldName = context.buildFullName(leafName());
402-
boolean hasDocValuesSkipper = isDocValuesSkipperEnabled
402+
boolean hasDocValuesSkipper = useDocValuesSkipper
403403
&& hasDocValuesSkipper(docValues.getValue(), indexMode, indexSortConfig, fullFieldName);
404404
DateFieldType ft = new DateFieldType(
405405
fullFieldName,

0 commit comments

Comments
 (0)