You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2021/08/10 13:27:04 UTC

[GitHub] [lucene] gsmiller commented on a change in pull request #233: LUCENE-10045: Extend ConjunctionUtils to support LongValues and DoubleValues

gsmiller commented on a change in pull request #233:
URL: https://github.com/apache/lucene/pull/233#discussion_r686017224



##########
File path: lucene/core/src/java/org/apache/lucene/search/ConjunctionUtils.java
##########
@@ -97,4 +97,11 @@ public static void addIterator(
       List<TwoPhaseIterator> twoPhaseIterators) {
     ConjunctionDISI.addIterator(disi, allIterators, twoPhaseIterators);
   }
+
+  /**
+   * Create a conjunction for a given lead {@link DocIdSetIterator} and an array of {@link Values}.
+   */
+  public static DocIdSetIterator createValuesConjunction(DocIdSetIterator lead, Values[] values) {

Review comment:
       Thanks for the suggestion! Definitely more flexible and modern. I need to spend a little more time looking at the rest of the `ConjunctionUtils` use-cases to determine if it makes more sense to use a `List` here for consistency with the rest of the helper methods. Hoping to make some time to dig a little deeper later in this week. Thanks again!




-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org