apache / apache/lucene

Get scores along with Spellcheck suggestions

Open
#11,908 0 comments 0 reactions 0 assignees View on GitHub
type:task
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

### Description

As we know, lucene spellcheck [suggestsimilar()](https://lucene.apache.org/core/6_0_1/suggest/org/apache/lucene/search/spell/SpellChecker.html#suggestSimilar-java.lang.String-int-) method returns just list of suggestions, it would be good to have a way to get the scores of each suggestions.

Contributor guide

Open the contributing guide

Research direction

Start with the Lucene SpellChecker.suggestSimilar(String, int) entry point and its linked API documentation. Trace how suggestions and their scores are currently produced, then review existing spellcheck callers and tests to determine the public result shape and verification needed. Done means callers can obtain each suggestion together with its score without breaking the existing suggestion behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.