Skip to content

Apache Lucene open-source search software

Update comment about IndexOptions ordinals (#12360)

Tomas Eduardo Fernandez Lobbeb50b969d2539
diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexOptions.java b/lucene/core/src/java/org/apache/lucene/index/IndexOptions.java
index 1ca75d57398..963c4f7b59d 100644
--- a/lucene/core/src/java/org/apache/lucene/index/IndexOptions.java
+++ b/lucene/core/src/java/org/apache/lucene/index/IndexOptions.java
@@ -22,9 +22,7 @@ package org.apache.lucene.index;
* @lucene.experimental
*/
public enum IndexOptions {
- // NOTE: order is important here; FieldInfo uses this
- // order to merge two conflicting IndexOptions (always
- // "downgrades" by picking the lowest).
+ // NOTE: order is important here; enum ordinals can be used to compare options.
/** Not indexed */
NONE,
/**