You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2023/06/26 23:29:19 UTC

[lucene] branch main updated: Update comment about IndexOptions ordinals (#12360)

This is an automated email from the ASF dual-hosted git repository.

tflobbe pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new b50b969d253 Update comment about IndexOptions ordinals (#12360)
b50b969d253 is described below

commit b50b969d2539309d113d9c283e4cb68e84977412
Author: Tomas Eduardo Fernandez Lobbe <tf...@apache.org>
AuthorDate: Mon Jun 26 16:29:13 2023 -0700

    Update comment about IndexOptions ordinals (#12360)
    
    FieldInfos no longer accepts changes in IndexOptions, however, different IndexOptions are still compared using their ordinals
---
 lucene/core/src/java/org/apache/lucene/index/IndexOptions.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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,
   /**