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

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

Commit 99c8f64506b35e09d9f46b5b659904196e0d9f1c in lucene's branch 
refs/heads/branch_9x from xiaoping
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=99c8f64506b ]

LUCENE-10555: fix iteratorCost initial logic error (#878)



> avoid repeated NumericLeafComparator setScorer calls
> ----------------------------------------------------
>
>                 Key: LUCENE-10555
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10555
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: jianping weng
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> ElasticSearch use CancellableBulkScorer to fast cancel long time query 
> execution by dividing one segment docs to many small split docs. For every 
> split docs, collector.setScorer(scorer) is called, then  
> NumericLeafComparator#setScorer is called. As a result, for one segment, 
> NumericLeafComparator#setScorer is called many times. 
> Every time NumericLeafComparator#setScorer is called, the 
> NumericLeafComparator#iteratorCost is reset to the Scorer.cost and increase 
> many unnecessary  pointValues#intersect calls to get  competitive docs.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to