msokolov commented on PR #15584:
URL: https://github.com/apache/lucene/pull/15584#issuecomment-4299335337

   OK my plan is to replace `IndexOptions.compareTo(IndexOptions)` with 
`IndexOptions.subsumes(IndexOptions other)` where subsumes is defined as:
   
   ```
   public boolean subsumes(IndexOptions other) {
       // treat DOCS_AND_CUSTOM_FREQS and DOCS_AND_FREQS for the purpose of 
subsumes
       if (this == DOCS_AND_CUSTOM_FREQS) {
         return DOCS_AND_FREQS.subsumes(other);
       }
       if (other == DOCS_AND_CUSTOM_FREQS) {
         return subsumes(DOCS_AND_FREQS);
       }
       return compareTo(other) >= 0;
     }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to