apache / apache/lucene

Add cost function to Scorable [LUCENE-9352]

Open
#10,392 4 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Minor type:enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.