You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "vsop-479 (via GitHub)" <gi...@apache.org> on 2025/05/12 02:00:23 UTC

[PR] Add comment about using InverseIntersectVisit and IntersectVisitor. [lucene]

vsop-479 opened a new pull request, #14647:
URL: https://github.com/apache/lucene/pull/14647

   ### Description
   
   <!--
   If this is your first contribution to Lucene, please make sure you have reviewed the contribution guide.
   https://github.com/apache/lucene/blob/main/CONTRIBUTING.md
   -->
   


-- 
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


Re: [PR] Add comment about using InverseIntersectVisit and IntersectVisitor. [lucene]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14647:
URL: https://github.com/apache/lucene/pull/14647#issuecomment-2910809175

   This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!


-- 
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


Re: [PR] Add comment about using InverseIntersectVisit and IntersectVisitor. [lucene]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14647:
URL: https://github.com/apache/lucene/pull/14647#issuecomment-3408720959

   This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!


-- 
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


Re: [PR] Add comment about using InverseIntersectVisit and IntersectVisitor. [lucene]

Posted by "jainankitk (via GitHub) via issues" <is...@lucene.apache.org>.
jainankitk closed pull request #14647: Add comment about using InverseIntersectVisit and IntersectVisitor.
URL: https://github.com/apache/lucene/pull/14647


-- 
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


Re: [PR] Add comment about using InverseIntersectVisit and IntersectVisitor. [lucene]

Posted by "jainankitk (via GitHub) via issues" <is...@lucene.apache.org>.
jainankitk commented on code in PR #14647:
URL: https://github.com/apache/lucene/pull/14647#discussion_r4570142410


##########
lucene/core/src/java/org/apache/lucene/search/PointRangeQuery.java:
##########
@@ -307,6 +354,11 @@ public DocIdSetIterator iterator(long leadCost) throws IOException {
               if (values.getDocCount() == reader.maxDoc()
                   && values.getDocCount() == values.size()
                   && cost() > reader.maxDoc() / 2) {
+                // Since we use (pointTree.size() + 1) / 2 to estimate count in cross case, whether
+                // use InverseIntersectVisitor only depends on whether pointTree.size() is odd
+                // number or not, e.g. odd number use InverseIntersectVisitor, even number use
+                // IntersectVisitor.

Review Comment:
   The comment is only true for single-leaf segments, but it's written as if it were always true. I guess nothing worth documenting.



-- 
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