Add cost function to Scorable [LUCENE-9352]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
`Scorable.cost() function could be useful in optimizations.`
For example, the ability for collectors to skip non-competitive documents introduced in #10320 is based on the cost of the corresponding Scorable.
---
Migrated from [LUCENE-9352](https://issues.apache.org/jira/browse/LUCENE-9352) by Mayya Sharipova (@mayya-sharipova), updated Jun 05 2020
Pull requests: https://github.com/apache/lucene-solr/pull/1554
Contributor guide
Research direction
Start by reviewing the Scorable entry point and the collector optimization described in the issue, then inspect pull request 1554 for the work already attempted. Done means Scorable exposes a cost function that collectors can use for the stated optimization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100