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

ASF subversion and git services commented on LUCENE-9620:
---------------------------------------------------------

Commit b3ce44cd0d76e1f437490c17a6cf37a7657a0fe9 in lucene's branch 
refs/heads/main from Adrien Grand
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=b3ce44c ]

LUCENE-9620: Implement AssertingWeight#count.


> Add Weight#count(LeafReaderContext)
> -----------------------------------
>
>                 Key: LUCENE-9620
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9620
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>          Time Spent: 4h 40m
>  Remaining Estimate: 0h
>
> We have IndexSearcher#count today, which tries to optimize counting for 
> TermQuery and MatchAllDocsQuery, and falls back to BulkScorer + 
> TotalHitCountCollector otherwise.
> I'm considering moving this to Weight instead, where it'd be a better place 
> to add counting optimizations for other queries, e.g. pure disjunctions over 
> single-valued fields or range queries on points. The default implementation 
> could use a BulkScorer+TotalHitCountCollector like IndexSearcher#count does 
> today.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to