apache / apache/lucene

Explore making Scorer.score() return a double [LUCENE-7517]

Open
#8,568 6 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

Follow-up to http://search-lucene.com/m/l6pAi1BoyPJ1vr2382&subj=Re+JENKINS+EA+Lucene+Solr+master+Linux+64bit+jdk+9+ea+140+Build+18103+Unstable+.

We could make Scorer.score() return a double in order to lose less accuracy when combining scores together, while still using floats on TopDocs and more generally all parts of the code that need to store scores.

---
Migrated from [LUCENE-7517](https://issues.apache.org/jira/browse/LUCENE-7517) by Adrien Grand (@jpountz), updated Oct 25 2016

Contributor guide

Open the contributing guide

Research direction

Start by tracing Scorer.score() and the code paths that combine its results, then inspect TopDocs and other locations that store scores as floats. The work is done when the precision trade-off and affected API and callers are resolved, with relevant tests covering score combination and retained float storage.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.