Lu Xugang created LUCENE-10446: ---------------------------------- Summary: Add a precise cost of score in ScorerSupplier Key: LUCENE-10446 URL: https://issues.apache.org/jira/browse/LUCENE-10446 Project: Lucene - Core Issue Type: Improvement Reporter: Lu Xugang
Some queries could sometime actually provide a precise cost of Score like RangeFieldQuery, PointRangeQuery, SpatialQuery. maybe we could do some optimization by using this precise cost. Like in IndexOrDocValuesQuery, when indexScorerSupplier or/and dvScorerSupplier's precise cost is reader.maxDoc, we will supply the right Scorer instead of according to the condition of threshold <= leadCost which sometime supply a inappropriate Score when IndexOrDocValuesQuery not a lead iterator. -- 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