Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hunspell: reduce suggestion set dependency on the hash table order #12239

Merged
merged 3 commits into from
Apr 23, 2023

Conversation

donnerpeter
Copy link
Contributor

When adding words to a dictionary, suggestions for other words shouldn't change unless they're directly related to the added words. But before, GeneratingSuggester selected 100 best first matches from the hash table, whose order can change significantly after adding any unrelated word. That resulted in unexpected suggestion changes on seemingly unrelated dictionary edits.

When adding words to a dictionary, suggestions for other words shouldn't change unless they're directly related to the added words.
But before, GeneratingSuggester selected 100 best first matches from the hash table, whose order can change significantly after adding any unrelated word.
That resulted in unexpected suggestion changes on seemingly unrelated dictionary edits.
@donnerpeter donnerpeter requested a review from dweiss April 22, 2023 19:49
@donnerpeter
Copy link
Contributor Author

For Lucene 9.6

Copy link
Contributor

@dweiss dweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@donnerpeter donnerpeter merged commit 025dfec into apache:main Apr 23, 2023
donnerpeter added a commit that referenced this pull request Apr 23, 2023
…12239)

When adding words to a dictionary, suggestions for other words shouldn't change unless they're directly related to the added words.
But before, GeneratingSuggester selected 100 best first matches from the hash table, whose order can change significantly after adding any unrelated word.
That resulted in unexpected suggestion changes on seemingly unrelated dictionary edits.
@dweiss
Copy link
Contributor

dweiss commented Apr 23, 2023

Hi Peter, there was a failure on 9x related to this patch?
https://ci-builds.apache.org/job/Lucene/job/Lucene-Check-9.x/5171/

@dweiss
Copy link
Contributor

dweiss commented Apr 23, 2023

Can't reproduce it though. Argh.

@donnerpeter
Copy link
Contributor Author

Thanks for notifying me! I have a guess. Let's see if 5e0761e fixes it.

@donnerpeter donnerpeter deleted the peter/hunspellStability branch May 19, 2023 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants