Skip to content

Commit d72c47b

Browse files
committed
Reword comment
1 parent a2e5a37 commit d72c47b

File tree

1 file changed

+2
-2
lines changed
  • server/src/main/java/org/elasticsearch/index/mapper

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ default boolean supportsVersion(IndexVersion indexCreatedVersion) {
136136
* This class models the ignore_above parameter in indices.
137137
*/
138138
public static final class IgnoreAbove {
139-
// We use Integer.MAX_VALUE to represent a no-op, ignoring no values.
139+
// We use Integer.MAX_VALUE to represent a no-op, accepting all values.
140140
public static final int IGNORE_ABOVE_DEFAULT_VALUE = Integer.MAX_VALUE;
141141
public static final int IGNORE_ABOVE_DEFAULT_VALUE_FOR_LOGSDB_INDICES = 8191;
142142

@@ -176,7 +176,7 @@ public boolean isSet() {
176176
* Returns whether values are potentially ignored, either by an explicitly configured ignore_above or by the default value.
177177
*/
178178
public boolean valuesPotentiallyIgnored() {
179-
// We use Integer.MAX_VALUE to represent ignoring no values. If the value is anything else, then either we have an
179+
// We use Integer.MAX_VALUE to represent accepting all values. If the value is anything else, then either we have an
180180
// explicitly configured ignore_above, or we have a non no-op default.
181181
return get() != Integer.MAX_VALUE;
182182
}

0 commit comments

Comments
 (0)