Skip to content

Commit 6634a98

Browse files
fix: rename hasInvertedIndex to hasPoints
1 parent 6e14fa1 commit 6634a98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,10 @@ public DateFieldMapper build(MapperBuilderContext context) {
407407
indexSortConfig,
408408
fullFieldName
409409
);
410-
boolean hasInvertedIndex = hasDocValuesSkipper == false
411-
&& index.getValue()
412-
&& indexCreatedVersion.isLegacyIndexVersion() == false;
410+
boolean hasPoints = hasDocValuesSkipper == false && index.getValue() && indexCreatedVersion.isLegacyIndexVersion() == false;
413411
DateFieldType ft = new DateFieldType(
414412
fullFieldName,
415-
hasInvertedIndex,
413+
hasPoints,
416414
hasDocValuesSkipper == false && index.getValue(),
417415
store.getValue(),
418416
docValues.getValue(),

0 commit comments

Comments
 (0)