You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "jianping weng (Jira)" <ji...@apache.org> on 2022/05/03 13:37:00 UTC
[jira] [Updated] (LUCENE-10555) avoid repeated NumericLeafComparator setScorer calls
[ https://issues.apache.org/jira/browse/LUCENE-10555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jianping weng updated LUCENE-10555:
-----------------------------------
Summary: avoid repeated NumericLeafComparator setScorer calls (was: avoid repeated NumericLeafComparator setScorer called )
> 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
>
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org