[ 
https://issues.apache.org/jira/browse/LUCENE-10378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488718#comment-17488718
 ] 

Gautam Worah commented on LUCENE-10378:
---------------------------------------

Just added a draft PR. It took me a little bit of time to understand how Points 
worked in general. I think what I've implemented is a brute force approach 
rather that what you were suggesting when you said `by only counting matches on 
the two leaves that cross with the query.`

> Implement Weight#count on PointRangeQuery
> -----------------------------------------
>
>                 Key: LUCENE-10378
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10378
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Adrien Grand
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When there are no deletions and the field is single-valued (docCount == size) 
> and has a single-dimension, PointRangeQuery could implement {{Weight#count}} 
> by only counting matches on the two leaves that cross with the query.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to